Start sharing components as a team!Share components as a team!Join Bit to build your applications faster.Get Started Free

table-sort-label

v4.5.2arrow_drop_down
v4.5.2
v3.9.2
STATUS
Passing
DOWNLOADS
460
LICENSE
MIT
VISIBILITY
Public
PUBLISHED
2 months ago
SIZE
28 KB
A button based label for placing inside `TableCell` for column sorting.
2 contributors
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
React
React
Vue
Angular
React Native
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';
toggle layout
chevron_left
chevron_right
tableSortLabel ()

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

Properties
NameTypeDescription
active
bool

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
(required)
object

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

className
string
direction
'asc' | 'desc'

The current sort direction.

hideSortIcon
bool

Hide sort icon when active is false.

IconComponent
elementType

Sort icon to use.