Components
TableSortIndicator
API Reference

API Reference

Component that indicates if a column is sortable and its current sort direction

<TableHeaderCell>
  {title}
  <TableSortIndicator sorted={sortDirection} />
</TableHeaderCell>

Parameters

props

  • Type: @vtex/shoreline-components.TableSortIndicatorProps & @types/react.React.RefAttributes<typescript.HTMLDivElement>

Props

sorted (optional)

Indicates if column is currently sorted, and in witch order

  • Type: null | desc | asc

  • Default: null

View source (opens in a new tab)