table-sort-label

v3.9.2arrow_drop_down
v3.9.2
STATUS
Passing
DOWNLOADS
433
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
4 months ago
subject
A button based label for placing inside `TableCell` for column sorting.
1 contributor
Like
Use table-sort-label in your project ?
Copied
npm i @bit/mui-org.material-ui.table-sort-label
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.dev
Component Example
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
modified
chevron_left
chevron_right
TableSortLabel ()

A button based label for placing inside TableCell for column sorting.

Properties
NameTypeDefault valueDescription
active
boolfalse

If true, the label will have the active styling (should be true for the sorted column).

children
node

Label contents, the arrow will be appended automatically.

classes
object

Override or extend the styles applied to the component. See CSS API below for more details.

className
string
direction
'asc' | 'desc''desc'

The current sort direction.

hideSortIcon
boolfalse

Hide sort icon when active is false.

IconComponent
customArrowDownwardIcon

Sort icon to use.