-
Notifications
You must be signed in to change notification settings - Fork 538
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
80 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,62 @@ | ||
{ | ||
"id": "actionbar", | ||
"name": "ActionBar", | ||
"status": "draft", | ||
"a11yReviewed": false, | ||
"stories": [ | ||
{"id": "components-actionbar--default"}, | ||
{"id": "components-actionbar--small-action-bar"}, | ||
{"id": "components-actionbar--comment-box"} | ||
], | ||
"props": [ | ||
{ | ||
"name": "size", | ||
"type": "'small' | 'medium' | 'large'", | ||
"required": false, | ||
"description": "Size of the action bar" | ||
}, | ||
{ | ||
"name": "aria-label", | ||
"type": "string", | ||
"description": "When provided, a label is added to the action bar" | ||
}, | ||
{ | ||
"name": "children", | ||
"type": "React.ReactElement", | ||
"required": true | ||
} | ||
], | ||
"subcomponents": [ | ||
{ | ||
"name": "ActionBar.Icon", | ||
"props": [ | ||
{ | ||
"name": "children", | ||
"type": "React.ReactNode", | ||
"defaultValue": "", | ||
"required": true, | ||
"description": "This will be the Button description." | ||
}, | ||
{ | ||
"name": "icon", | ||
"type": "Component", | ||
"defaultValue": "", | ||
"description": "provide an octicon. It will be placed in the center of the button" | ||
}, | ||
{ | ||
"name": "aria-label", | ||
"type": "string", | ||
"defaultValue": "", | ||
"description": "Use an aria label to describe the functionality of the button. Please refer to [our guidance on alt text](https://primer.style/guides/accessibility/alternative-text-for-images) for tips on writing good alternative text." | ||
}, | ||
{ | ||
"name": "sx", | ||
"type": "SystemStyleObject" | ||
} | ||
] | ||
}, | ||
{ | ||
"name": "ActionBar.Divider" | ||
} | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
32 changes: 11 additions & 21 deletions
32
packages/react/src/ActionBar/ActionBar.tsx → .../react/src/drafts/ActionBar/ActionBar.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
packages/react/src/ActionBar/index.ts → packages/react/src/drafts/ActionBar/index.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters