columns
RequiredDescription
The array of column defs to use for the table.
Type
Column<Y, any>[]
Leave Yamada UI a star
StarTable
is a table component equipped with column sorting, row selection, and click event features.
Description
The array of column defs to use for the table.
Type
Column<Y, any>[]
Description
Props for table cell component.
Type
CellProps<Y>
Description
Props for table checkbox element.
Type
CheckboxProps<string>
Description
The visual color appearance of the component.
Type
"blackAlpha" | "whiteAlpha" | "amber" | "blue" | "info" | "link" | "primary" | "cyan" | "emerald" | "flashy" | "fuchsia" | "gray" | "green" | "success" | "indigo" | "lime" | "neutral" | "orange" | "warning" | "pink" | "purple" | "red" | "danger" | "rose" | "sky" | "teal" | "violet" | "secondary" | "yellow"
Default
"gray"
Description
Default column options to use for all column defs supplied to the table.
Type
Partial<Column<Y, any>>
Description
The initial ids of the selected row.
Type
string[]
Description
The initial sort of the table.
Type
Sort<Y>
Description
The ids that disabled in selection.
Type
string[]
Description
Props for table footer group component.
Type
HeaderGroupProps<Y>
Description
Props for table footer component.
Type
HeaderProps<Y>
Description
Props for table header group component.
Type
HeaderGroupProps<Y>
Description
Props for table header component.
Type
HeaderProps<Y>
Description
If true
, highlight the row when the table row is hovered.
Type
boolean
Default
false
Description
If true
, highlight the row when the table row is selected.
Type
boolean
Default
false
Description
If true
, the table cell will be focusable.
Type
boolean
Default
true
Description
The CSS table-layout
property.
Type
"auto" | "fixed" | "-moz-initial" | "inherit" | "initial" | "revert" | "revert-layer" | "unset" | [TableLayout | { [x: string]: TableLayout | undefined; ... 5 more ...; xl?: TableLayout | undefined; }, TableLayout | { ...; }] | { ...; } | [...] | { ...; } | ((theme: StyledTheme) => UIValue<...>)
Description
The callback invoked when row is selected.
Type
(rowSelection: string[]) => void
Description
The callback invoked when table sort is changed.
Type
(sort: Sort<Y>) => void
Description
The callback invoked when a row is clicked.
Type
(row: Row<Y>) => void
Description
The callback invoked when a row is double clicked.
Type
(row: Row<Y>) => void
Description
The role used for the row header. This is used for accessibility to announce the selected row.
Type
keyof Y
Description
The id used to store the value when selected.
Type
keyof Y
Description
Props for table row component.
Type
RowProps<Y>
Description
If true
, allows selection by clicking on a row.
Type
boolean
Default
false
Description
Props for table select column component.
Type
false | SelectColumn<Y, any>
Description
The ids of the selected row.
Type
string[]
Description
The size of the Table.
Type
"sm" | "md" | "lg" | "xl"
Default
"md"
Description
The sort of the table.
Type
Sort<Y>
Description
Props for table sort icon element.
Type
IconProps
Description
Props for table tbody element.
Type
TableBodyProps
Description
Props for table tfoot element.
Type
TableFootProps
Description
Props for table thead element.
Type
TableHeadProps
Description
The variant of the Table.
Type
"simple" | "striped" | "unstyled"
Default
"simple"
Description
If true
, display the outer border of the table.
Type
boolean
Default
false
Description
If true
, display line on the columns of the table.
Type
boolean
Default
false
Description
If true
, display the table footer.
Type
boolean
Default
false
Description
If true
, display the checkbox in table footer.
Type
boolean
Default
false
Edit this page on GitHub