Documentation
- 312 sections
- Solid
- Tailwind or StyleX
Pagination
Page navigation that always shows the first, last and current page, collapsing the rest to ellipses. Two-way bound with page and onUpdatePage.
- page
- Typenumber (with onUpdatePage) Defaultnone
- onUpdatePage
- Type(page: number) => void Defaultnone
- total
- Typenumber (page count) Defaultnone
- siblings
- Typenumber (pages either side) Default1
- class
- Typestring Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherPaginationRating
Dithered stars, rasterised from a 5-point polygon and scattered through the Bayer matrix. Interactive as a slider (click or arrow keys); read-only mode fills fractionally. A seed tilts the star and reshuffles the scatter, so no two ratings look stamped from the same die.
- modelValue
- Typenumber (with onUpdateModelValue) Default0
- onUpdateModelValue
- Type(value: number) => void Defaultnone
- max
- Typenumber Default5
- color
- TypePixelColor Default"orange"
- size
- Typenumber (px per star) Default22
- readonly
- Typeboolean (fractions allowed) Defaultfalse
- label
- Typestring (accessible name) Default"Rating"
- seed
- Typenumber (star tilt + scatter) Defaultclean
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherRatingStepper
Progress through a multi-step flow. Completed steps carry a check, the current step an outlined node, and the connectors are the kit's dithered rule, dissolving toward steps not yet reached.
- steps
- Type{ label; hint? }[] Defaultnone
- current
- Typenumber (active index) Defaultnone
- class
- Typestring Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherStepperTimeline
A vertical run of events, each pinned by a dithered dot whose density fades at the rim. Give a title, an optional timestamp, body and palette colour per node.
- items
- Type{ title; time?; body?; color? }[] Defaultnone
- dotSize
- Typenumber (px) Default12
- class
- Typestring Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTimeline