-
-
Notifications
You must be signed in to change notification settings - Fork 47
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
1 parent
d2ea1de
commit 23cfc62
Showing
11 changed files
with
124 additions
and
16 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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
{ | ||
"name": "ToggleButtonGroupItem", | ||
"description": "", | ||
"props": { | ||
"value": { | ||
"type": "string", | ||
"required": true, | ||
"description": "A unique string that identifies the component when used\ninside a ToggleButtonGroup" | ||
}, | ||
"aria-label": { | ||
"type": "string", | ||
"description": "The label for the toggle button." | ||
}, | ||
"aria-labelledby": { | ||
"type": "string", | ||
"description": "An id or space-separated list of ids of elements that label the toggle button." | ||
}, | ||
"className": { | ||
"type": "string | (state) => string", | ||
"description": "Class names applied to the element or a function that returns them based on the component's state." | ||
}, | ||
"onPressedChange": { | ||
"type": "function(pressed: boolean, event: Event) => void", | ||
"description": "Callback fired when the pressed state is changed." | ||
}, | ||
"render": { | ||
"type": "React.ReactElement | (props, state) => React.ReactElement", | ||
"description": "A function to customize rendering of the component." | ||
} | ||
} | ||
} |
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,36 @@ | ||
{ | ||
"name": "ToggleButtonGroupRoot", | ||
"description": "", | ||
"props": { | ||
"className": { | ||
"type": "string | (state) => string", | ||
"description": "Class names applied to the element or a function that returns them based on the component's state." | ||
}, | ||
"defaultValue": { | ||
"type": "string[]", | ||
"description": "The open state of the ToggleButtonGroup represented by an array of\nthe values of all pressed `<ToggleButtonGroup.Item/>`s\nThis is the uncontrolled counterpart of `value`." | ||
}, | ||
"dir": { | ||
"type": "'ltr' | 'rtl'", | ||
"default": "'ltr'", | ||
"description": "Text direction" | ||
}, | ||
"onValueChange": { | ||
"type": "function(groupValue: Array<string>, event: Event) => void", | ||
"description": "Callback fired when the pressed states of the ToggleButtonGroup changes." | ||
}, | ||
"render": { | ||
"type": "React.ReactElement | (props, state) => React.ReactElement", | ||
"description": "A function to customize rendering of the component." | ||
}, | ||
"toggleMultiple": { | ||
"type": "boolean", | ||
"default": "false", | ||
"description": "When `false` only one item in the group can be pressed. If any item in\nthe group becomes pressed, the others will become unpressed.\nWhen `true` multiple items can be pressed." | ||
}, | ||
"value": { | ||
"type": "string[]", | ||
"description": "The open state of the ToggleButtonGroup represented by an array of\nthe values of all pressed `<ToggleButtonGroup.Item/>`s\nThis is the controlled counterpart of `defaultValue`." | ||
} | ||
} | ||
} |
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,41 @@ | ||
{ | ||
"name": "ToggleButtonRoot", | ||
"description": "", | ||
"props": { | ||
"aria-label": { | ||
"type": "string", | ||
"description": "The label for the ToggleButton." | ||
}, | ||
"aria-labelledby": { | ||
"type": "string", | ||
"description": "An id or space-separated list of ids of elements that label the ToggleButton." | ||
}, | ||
"className": { | ||
"type": "string | (state) => string", | ||
"description": "Class names applied to the element or a function that returns them based on the component's state." | ||
}, | ||
"defaultPressed": { | ||
"type": "boolean", | ||
"default": "false", | ||
"description": "The default pressed state. Use when the component is not controlled." | ||
}, | ||
"disabled": { | ||
"type": "boolean", | ||
"default": "false", | ||
"description": "If `true`, the component is disabled." | ||
}, | ||
"onPressedChange": { | ||
"type": "function(pressed: boolean, event: Event) => void", | ||
"description": "Callback fired when the pressed state is changed." | ||
}, | ||
"pressed": { | ||
"type": "boolean", | ||
"default": "undefined", | ||
"description": "If `true`, the component is pressed." | ||
}, | ||
"render": { | ||
"type": "React.ReactElement | (props, state) => React.ReactElement", | ||
"description": "A function to customize rendering of the component." | ||
} | ||
} | ||
} |
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
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