MCPcopy Create free account
hub / github.com/chakra-ui/panda / Examples

Function Examples

playground/src/components/Examples/index.tsx:9–33  ·  view source on GitHub ↗
(props: ExamplesProps)

Source from the content-addressed store, hash-verified

7}
8
9export const Examples = (props: ExamplesProps) => {
10 return (
11 <Menu.Root
12 positioning={{ placement: 'bottom-start' }}
13 onSelect={({ value }) => {
14 props.setExample(value as Example)
15 }}
16 >
17 <Menu.Trigger asChild>
18 <button title="Try out some examples" className={button()}>
19 Examples
20 </button>
21 </Menu.Trigger>
22 <Menu.Positioner className={menu()}>
23 <Menu.Content>
24 {EXAMPLES.map((example) => (
25 <Menu.Item key={example.id} value={example.id}>
26 {example.label}
27 </Menu.Item>
28 ))}
29 </Menu.Content>
30 </Menu.Positioner>
31 </Menu.Root>
32 )
33}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected