(props: ExamplesProps)
| 7 | } |
| 8 | |
| 9 | export 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 | } |
nothing calls this directly
no outgoing calls
no test coverage detected