We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
reference
Contains all the parts of a toggle group.
type
onValueChange
true
false
DirectionProvider
rovingFocus
<DataAttributesTable data={[ { attribute: '[data-orientation]', values: ['vertical', 'horizontal'], }, ]} />
An item in the group.
<DataAttributesTable data={[ { attribute: '[data-state]', values: ['on', 'off'], }, { attribute: '[data-disabled]', values: 'Present when disabled', }, { attribute: '[data-orientation]', values: ['vertical', 'horizontal'], }, ]} />
The text was updated successfully, but these errors were encountered:
khairulhaaziq
No branches or pull requests
reference
Root
Contains all the parts of a toggle group.
type
is "single". Must be used in conjunction withonValueChange
.type
is "single". Use when you do not need to control the state of the items.type
is "single".type
is "multiple". Must be used in conjunction withonValueChange
.type
is "multiple". Use when you do not need to control the state of the items.type
is "multiple".true
, prevents the user from interacting with the toggle group and all its items.false
, navigating through the items using arrow keys will be disabled.DirectionProvider
or assumes LTR (left-to-right) reading mode.true
androvingFocus
istrue
, keyboard navigation will loop from the last item to the first, and vice versa.<DataAttributesTable
data={[
{
attribute: '[data-orientation]',
values: ['vertical', 'horizontal'],
},
]}
/>
Item
An item in the group.
true
, prevents the user from interacting with the item.<DataAttributesTable
data={[
{
attribute: '[data-state]',
values: ['on', 'off'],
},
{
attribute: '[data-disabled]',
values: 'Present when disabled',
},
{
attribute: '[data-orientation]',
values: ['vertical', 'horizontal'],
},
]}
/>
The text was updated successfully, but these errors were encountered: