Parameters
The currently selected value.
Function called when selection changes.
Array of components to display as list items.
A container that presents rows of data arranged in a single column.
List<V = string>(props: ListProps<V>, children: Component[]): Component;
List(children: Component[]): Component;
List([
Text("Item 1"),
Text("Item 2"),
Text("Item 3")
])
const [selectedItem, setSelectedItem] = useState("Item 1")
List(
{
selection: selectedItem,
setSelection: setSelectedItem
},
[
Text("Item 1"),
Text("Item 2"),
Text("Item 3")
]
)