MCPcopy Create free account
hub / github.com/adobe/react-spectrum / Example

Function Example

starters/tailwind/stories/ToggleButtonGroup.stories.tsx:17–29  ·  view source on GitHub ↗
(args: any)

Source from the content-addressed store, hash-verified

15export default meta;
16
17export const Example = (args: any) => (
18 <ToggleButtonGroup {...args}>
19 <ToggleButton id="bold" aria-label="Bold">
20 <Bold className="w-4 h-4" />
21 </ToggleButton>
22 <ToggleButton id="italic" aria-label="Italic">
23 <Italic className="w-4 h-4" />
24 </ToggleButton>
25 <ToggleButton id="underline" aria-label="Underline">
26 <Underline className="w-4 h-4" />
27 </ToggleButton>
28 </ToggleButtonGroup>
29);
30
31Example.args = {
32 selectionMode: 'multiple'

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected