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

Function Example

starters/docs/stories/Toolbar.stories.tsx:21–43  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

19type Story = StoryFn<typeof Toolbar>;
20
21export const Example: Story = args => (
22 <Toolbar aria-label="Text formatting" {...args}>
23 <Group aria-label="Style">
24 <ToggleButton aria-label="Bold">
25 <b>B</b>
26 </ToggleButton>
27 <ToggleButton aria-label="Italic">
28 <i>I</i>
29 </ToggleButton>
30 <ToggleButton aria-label="Underline">
31 <u>U</u>
32 </ToggleButton>
33 </Group>
34 <Separator />
35 <Group aria-label="Clipboard">
36 <Button>Copy</Button>
37 <Button>Paste</Button>
38 <Button>Cut</Button>
39 </Group>
40 <Separator />
41 <Checkbox>Night Mode</Checkbox>
42 </Toolbar>
43);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected