* docs: create a new UI docs project (#13233) * docs: create a new UI docs project * fix installation errors * docs: migrate UI docs content to new project (#13241) * Fix content * added examples for some components * finish adding examples * lint fix * fix build errors * delete empty files * path fixes + refactor * fix build error
35 lines
1.0 KiB
JSON
35 lines
1.0 KiB
JSON
{
|
|
"description": "This component creates a data table with filters, pagination, sorting, and more.\nIt's built on top of the `Table` component while expanding its functionality.\nThe `DataTable` is useful to create tables similar to those in the Medusa Admin dashboard.",
|
|
"methods": [],
|
|
"displayName": "DataTable",
|
|
"props": {
|
|
"instance": {
|
|
"required": true,
|
|
"tsType": {
|
|
"name": "UseDataTableReturn",
|
|
"elements": [
|
|
{
|
|
"name": "TData"
|
|
}
|
|
],
|
|
"raw": "UseDataTableReturn<TData>"
|
|
},
|
|
"description": "The instance returned by the `useDataTable` hook."
|
|
},
|
|
"children": {
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "ReactReactNode",
|
|
"raw": "React.ReactNode"
|
|
},
|
|
"description": "The children of the component."
|
|
},
|
|
"className": {
|
|
"required": false,
|
|
"tsType": {
|
|
"name": "string"
|
|
},
|
|
"description": "Additional classes to pass to the wrapper `div` of the component."
|
|
}
|
|
}
|
|
} |