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
Add it to your project
One line copies DitherPagination and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherPagination

Rating

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
Add it to your project
One line copies DitherRating and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherRating

Stepper

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
Add it to your project
One line copies DitherStepper and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherStepper

Timeline

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
Add it to your project
One line copies DitherTimeline and every kit file they need into your project, in the styling system picked in the header.
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherTimeline