| 14 | type Story = StoryFn<typeof GridList>; |
| 15 | |
| 16 | export const Example: Story = args => ( |
| 17 | <GridList aria-label="Pokémon" selectionMode="multiple" selectionBehavior="replace" {...args}> |
| 18 | <GridListItem id="charizard" textValue="Charizard"> |
| 19 | Charizard |
| 20 | <Button variant="secondary" onPress={() => alert('Info for Charizard')}> |
| 21 | Info |
| 22 | </Button> |
| 23 | </GridListItem> |
| 24 | <GridListItem id="blastoise" textValue="Blastoise"> |
| 25 | Blastoise |
| 26 | <Button variant="secondary" onPress={() => alert('Info for Blastoise')}> |
| 27 | Info |
| 28 | </Button> |
| 29 | </GridListItem> |
| 30 | <GridListItem id="venusaur" textValue="Venusaur"> |
| 31 | Venusaur |
| 32 | <Button variant="secondary" onPress={() => alert('Info for Venusaur')}> |
| 33 | Info |
| 34 | </Button> |
| 35 | </GridListItem> |
| 36 | </GridList> |
| 37 | ); |
nothing calls this directly
no outgoing calls
no test coverage detected