Sort
Sortable column header utility with animated direction indicators. Cycles through asc → desc → null (unsorted). Built on Framer Motion.
Import
import { Sort } from 'reablocks';
// also available
import { getNextDirection, SortDirection } from 'reablocks';
Sort Props
| Prop | Type | Default | Description |
|---|---|---|---|
direction | 'asc' | 'desc' | null | — | Current sort direction |
onSort | `(direction: SortDirection) => v |
[Description truncada. Veja o README completo no GitHub.]