Table
Renders a MantineReactTable component with row/mass actions and pagination
- Import
import { Table } from '@smile/haring-react-table';
- Extends MantineReactTable
- Source View Source Code
- Package @smile/haring-react-table
- Storybook Storybook
Storybook Docs
Props
Name | Type | Default | Description |
---|---|---|---|
actions | ITableAction | [] | Array of IAction s for the table |
menuLabel | string | "Other actions" | Tooltip label of the "... " extra actions menu |
paginationProps | Partial<IPaginationProps> | - | Props of Pagination component |
rowActionNumber | number | 0 | Index that determines where the row actions array in the actions column is sliced, all actions after this index will be moved inside the "... " extra actions menu |
... | - | - | extends MRT_TableOptions props |
ITableData<Data extends Record<string, unknown>
Corresponds to either a Data
object or an array of Data
objects, or MRT_Row
<Data>
or MRT_Row
<Data>[]
MRT_Row
is a MantineReactTable wrapper type that correspond to a table row.
ITableAction
Corresponds to IAction
<ITableData>