Day filter
import { DayFilter, DayFilterChip, presetRange, dayRangeOf, dayRangeWords, dayFilterRows } from "@arcadia/ui";CardsNov 3 to Nov 9
DayFilter
valuerequired- DayRange | null
- The days chosen, or none: pass back what
onChangegave, so a preset keeps its name. onChangerequired- (range: DayRange) => void
- Called with the days chosen: a preset's at once, a range once its second day is pressed.
label- string
- Default:
"Date" - The group's name over its rows.
ranges- DayFilterRanges
- The presets it shows, one to four of
DAY_PRESETS(more is refused), drawn in the kit's order whatever order they are named in. Default: Today, Last 7 days and Last 30 days. custom- boolean
- Default:
true false: no Custom range row, the presets alone. The last row.query- string
- Default:
"" - What the filter menu's search row holds: only the rows whose words hold it stay, and with none the group goes.
today- Day
- The day it is, given by the product so a test and a server agree. Default: the machine's own, in the reader's zone.
locale- string
- The reader's locale: the calendar's words and week, and the days' words. Default: the platform's.
min- Day
- The first day the calendar offers.
max- Day
- The last day the calendar offers.
valuerequired- { first: Day; last: Day; preset?: DayPreset }
- The days in force.
onRemoverequired- () => void
- Takes the filter away.
today- Day
- The day it is, as the filter's.
locale- string
- The reader's locale, as the filter's.