Sort control with direction toggle and customizable option list.
Click to change sort field and toggle direction.
Sorting by: name (asc)
<script>
import { SortDropdown } from "jatui"
</script>
<SortDropdown />| Prop | Type | Default | Description |
|---|---|---|---|
options | SortOption[] | [] | Sort options (value, label) |
sortBy | string | - | Active sort field |
sortDir | "asc" | "desc" | "asc" | Sort direction |
onSortChange | (value, dir) => void | - | Sort change callback |