{
"props": {
"active": { "type": { "name": "bool" }, "default": "false" },
"children": { "type": { "name": "node" } },
"classes": { "type": { "name": "object" }, "additionalInfo": { "cssApi": true } },
"direction": {
"type": { "name": "enum", "description": "'asc'
| 'desc'" },
"default": "'asc'"
},
"hideSortIcon": { "type": { "name": "bool" }, "default": "false" },
"IconComponent": { "type": { "name": "elementType" }, "default": "ArrowDownwardIcon" },
"slotProps": {
"type": {
"name": "shape",
"description": "{ icon?: func
| object, root?: func
| object }"
},
"default": "{}"
},
"slots": {
"type": { "name": "shape", "description": "{ icon?: elementType, root?: elementType }" },
"default": "{}"
},
"sx": {
"type": {
"name": "union",
"description": "Array<func
| object
| bool>
| func
| object"
},
"additionalInfo": { "sx": true }
}
},
"name": "TableSortLabel",
"imports": [
"import TableSortLabel from '@mui/material/TableSortLabel';",
"import { TableSortLabel } from '@mui/material';"
],
"slots": [
{
"name": "root",
"description": "The component that renders the root slot.",
"default": "span",
"class": "MuiTableSortLabel-root"
},
{
"name": "icon",
"description": "The component that renders the icon slot.",
"default": "ArrowDownwardIcon",
"class": "MuiTableSortLabel-icon"
}
],
"classes": [
{
"key": "active",
"className": "Mui-active",
"description": "State class applied to the root element if `active={true}`.",
"isGlobal": true
},
{
"key": "directionAsc",
"className": "MuiTableSortLabel-directionAsc",
"description": "Styles applied to the root element if `direction=\"asc\"`.",
"isGlobal": false
},
{
"key": "directionDesc",
"className": "MuiTableSortLabel-directionDesc",
"description": "Styles applied to the root element if `direction=\"desc\"`.",
"isGlobal": false
},
{
"key": "iconDirectionAsc",
"className": "MuiTableSortLabel-iconDirectionAsc",
"description": "Styles applied to the icon component if `direction=\"asc\"`.",
"isGlobal": false,
"isDeprecated": true
},
{
"key": "iconDirectionDesc",
"className": "MuiTableSortLabel-iconDirectionDesc",
"description": "Styles applied to the icon component if `direction=\"desc\"`.",
"isGlobal": false,
"isDeprecated": true
}
],
"spread": true,
"themeDefaultProps": true,
"muiName": "MuiTableSortLabel",
"forwardsRefTo": "HTMLSpanElement",
"filename": "/packages/mui-material/src/TableSortLabel/TableSortLabel.js",
"inheritance": { "component": "ButtonBase", "pathname": "/material-ui/api/button-base/" },
"demos": "