Table

A table displays data in rows and columns and enables a user to navigate its contents via directional navigation keys, and optionally supports row selection and sorting.

TSLATesla Inc.720.00710.00735.00
AMZNAmazon.com Inc.3450.003420.003475.00
GOOGLAlphabet Inc.2800.502780.002825.00

Examples

Pagination

TSLATesla Inc.720.00710.00735.00
AMZNAmazon.com Inc.3450.003420.003475.00
GOOGLAlphabet Inc.2800.502780.002825.00
1-10 of 100
Rows

With card

TSLATesla Inc.720.00710.00735.00
AMZNAmazon.com Inc.3450.003420.003475.00
GOOGLAlphabet Inc.2800.502780.002825.00

Props

children
ReactNode
selectionBehavior
SelectionBehavior"toggle"
disabledBehavior
DisabledBehavior"selection"
onRowAction
((key: Key) => void)
dragAndDropHooks
DragAndDropHooks
disabledKeys
Iterable<Key>
escapeKeyBehavior
"none" | "clearSelection"'clearSelection'
selectionMode
SelectionMode
disallowEmptySelection
boolean
selectedKeys
"all" | Iterable<Key>
defaultSelectedKeys
"all" | Iterable<Key>
onSelectionChange
((keys: Selection) => void)
sortDescriptor
SortDescriptor
onSortChange
((descriptor: SortDescriptor) => any)
className
string | ((values: TableRenderProps & { defaultClassName: string; }) => string)
style
CSSProperties | ((values: TableRenderProps & { defaultStyle: CSSProperties; }) => CSSProperties)
slot
string | null
onScroll
((e: UIEvent<HTMLTableElement, UIEvent>) => void)
isCompact
boolean