1. Docs
  2. Components
  3. List Box

List Box

A list of options and allows a user to select one or more of them.

Installation

Anatomy

Examples

Multiple

Component list-box-multiple not found in registry.

Details

Component list-box-details not found in registry.

Section

Component list-box-section not found in registry.

API Reference

ListBox.Root

PropTypeDefault
items
Iterable<T>
children
ReactNode | function
selectionMode
enum
selectedKeys
Iterable<Key>
defaultSelectedKeys
Iterable<Key>
onSelectionChange
function
disabledKeys
Iterable<Key>
isLoading
boolean
renderEmptyState
function

ListBox.Item

PropTypeDefault
id
Key
textValue
string
isDisabled
boolean
children
ReactNode
className
string

ListBox.Group

PropTypeDefault
children
ReactNode

ListBox.Label

PropTypeDefault
children
ReactNode
className
string

ListBox.Empty

PropTypeDefault
children
ReactNode
className
string

ListBox.LoadMoreItem

PropTypeDefault
onLoadMore
function
children
ReactNode
className
string