Identifies the element (or elements) that describes the object.
Optionalaria-details
"aria-details"?:string
Identifies the element (or elements) that provide a detailed, extended description for the object.
Optionalaria-label
"aria-label"?:string
Defines a string value that labels the current element.
Optionalaria-labelledby
"aria-labelledby"?:string
Identifies the element (or elements) that labels the current element.
Optionalchildren
children?:ReactNode
The elements that make up the table. Includes the TableHeader, TableBody, Columns, and Rows.
OptionalclassName
className?:ClassNameOrFunction<TableRenderProps>
The CSS className for the element. A function may be provided to compute the class based on component state.
Default
'react-aria-Table'
OptionaldefaultSelectedKeys
defaultSelectedKeys?:"all"|Iterable<Key,any,any>
The initial selected keys in the collection (uncontrolled).
Optionaldir
dir?:string
OptionaldisabledBehavior
disabledBehavior?:DisabledBehavior
Whether disabledKeys applies to all interactions, or only selection.
Default
"all"
OptionaldisabledKeys
disabledKeys?:Iterable<Key,any,any>
A list of row keys to disable.
OptionaldisallowEmptySelection
disallowEmptySelection?:boolean
Whether the collection allows empty selection.
OptionaldragAndDropHooks
dragAndDropHooks?:DragAndDropHooks<object>
The drag and drop hooks returned by useDragAndDrop used to enable drag and drop behavior for the Table.
OptionalescapeKeyBehavior
escapeKeyBehavior?:"none"|"clearSelection"
Whether pressing the escape key should clear selection in the table or not.
Most experiences should not modify this option as it eliminates a keyboard user's ability to
easily clear selection. Only use if the escape key is being handled externally or should not
trigger selection clearing contextually.
The currently selected keys in the collection (controlled).
OptionalselectionBehavior
selectionBehavior?:SelectionBehavior
How multiple selection should behave in the collection.
Default
"toggle"
OptionalselectionMode
selectionMode?:SelectionMode
The type of selection that is allowed in the collection.
OptionalshouldSelectOnPressUp
shouldSelectOnPressUp?:boolean
Whether selection should occur on press up instead of press down.
Optionalslot
slot?:string|null
A slot name for the component. Slots allow the component to receive props from a parent component.
An explicit null value indicates that the local props completely override all props received from a parent.
OptionalsortDescriptor
sortDescriptor?:SortDescriptor
The current sorted column and direction.
Optionalstale
stale?:boolean
Optionalstyle
style?:StyleOrFunction<TableRenderProps>
The inline style for the element. A function may be provided to compute the style based on component state.
Identifies the element (or elements) that describes the object.