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

Function PokemonListView

packages/dev/s2-docs/pages/s2/PokemonListView.tsx:41–60  ·  view source on GitHub ↗
(props: PokemonListViewProps)

Source from the content-addressed store, hash-verified

39}
40
41export function PokemonListView(props: PokemonListViewProps) {
42 let {items = defaultItems, dragAndDropHooks} = props;
43
44 return (
45 <ListView
46 styles={style({height: 250, width: 250})}
47 aria-label="Pokemon list"
48 selectionMode="multiple"
49 items={items}
50 renderEmptyState={renderEmptyState}
51 dragAndDropHooks={dragAndDropHooks}>
52 {item => (
53 <ListViewItem textValue={item.name}>
54 <Text slot="label">{item.name}</Text>
55 <Text slot="description">{item.type}</Text>
56 </ListViewItem>
57 )}
58 </ListView>
59 );
60}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected