Documentation
- 312 sections
- Solid
- Tailwind or StyleX
Badge
A small label chip: the button's dither fill at rest, no hover machinery, any palette color and texture variant.
- color
- TypePixelColor Default"blue"
- variant
- Type"gradient" | "solid" | "dotted" | "hatched" Default"gradient"
- seed
- Typenumber Defaultnone
- class
- Typestring Defaultnone
- children
- Typecontent Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherBadgeSkeleton
A loading placeholder that shimmers pixel-by-pixel: the field's density breathes through the Bayer matrix instead of a gradient sweep. Size it with classes and compose it into any layout.
- seed
- Typenumber Defaultnone
- class
- Typestring Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherSkeletonSpinner
A dithered loader, repainted at 30fps. It's not one shape. A seed samples three axes at once: the silhouette (circle ring, square box-ring, or bar), the flow (sweep like a comet, pulse breathing, or a travelling wave), and the detail (dashes, petals, thickness). So every seed is a genuinely different loader: a rotating ring, a breathing square, dashes racing a bar. Static under reduced motion.
- size
- Typenumber (px) Default20
- color
- TypePixelColor Default"blue"
- seed
- Typenumber (samples a spinner form) Defaultclean arc
- renderMode
- Type"live" | "static" Default"live"
- precompiled
- Typestring | { src: string; width?: number; height?: number } Defaultundefined
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherButton DitherSpinnerSeparator
A 2px rule whose pixels dissolve toward both ends through the Bayer matrix: the image component's edge fade, applied to a divider.
- orientation
- Type"horizontal" | "vertical" Default"horizontal"
- class
- Typestring Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherSeparator