Documentation
- 312 sections
- Solid
- Tailwind or StyleX
Shell
The app frame: topbar over an aside + content pair, statusbar under, every region a prop. Below, a whole SaaS dashboard from the layout family: rail, canvas, grid, sparkline cards, a live console.
- frame
- Typeboolean (embedded card chrome: border, rounding, clip) Defaultfalse
- class
- Typestring Defaultnone
- topbar / aside / statusbar / children
- TypeJSX.Element (children: content) Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherAvatar DitherBadge DitherCanvas DitherConsole DitherGrid DitherRail DitherShell DitherSidebarItem DitherTooltip SparklineRail
The permanent icon rail as a first-class piece. It provides the sidebar's collapsed context, so plain sidebar items fold their labels with zero extra props. Tooltips carry the words.
- label
- Typestring (aria-label for the nav landmark) Default"Rail"
- side
- Type"left" | "right" (flips the border edge) Default"left"
- class
- Typestring Defaultnone
- header / footer / children
- TypeJSX.Element (children: items, labels fold automatically) Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherAvatar DitherRail DitherSidebarItem DitherTooltipConsole
A monospace log surface: lines tint by level, follow mode pins the newest output, the caret blinks politely. Run the deploy and watch it stream.
- lines
- Type(string | { text, level?, at? })[] (level: info | success | warn | error) Default[]
- title
- Typestring (header caption) Default"console"
- follow
- Typeboolean (pin the view to the newest line) Defaulttrue
- caret
- Typeboolean (blinking block caret, still under reduced motion) Defaulttrue
- class
- Typestring Defaultnone
- actions
- TypeJSX.Element (right side of the header) Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherButton DitherConsoleCanvas
The work surface a dashboard sits on: a dotted or ruled field inked with the border token, content floating above.
- pattern
- Type"dots" | "grid" | "plain" Default"dots"
- cell
- Typenumber (pattern pitch in px) Default16
- class
- Typestring Defaultnone
- children
- Typecontent Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherCanvasGrid
Dashboard columns without media queries: cards auto-fit to a minimum width, or take a deliberate fixed count. Drag the number and watch the flow.
- min
- Typenumber (minimum card width, columns auto-fit) Default240
- cols
- Typenumber (fixed column count, overrides min) Defaultnone
- gap
- Typestring (any CSS length) Default"0.75rem"
- class
- Typestring Defaultnone
- children
- Typecontent Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherGridInfinite canvas
A pannable, zoomable work surface: drag to pan, wheel to zoom toward the cursor, and the dot field rides the same transform so space feels real. The zoom is two-way: zoom with onUpdateZoom.
- zoom
- Typenumber (with onUpdateZoom) Default1
- onUpdateZoom
- Type(zoom: number) => void Defaultnone
- minZoom / maxZoom
- Typenumber (clamp range) Default0.25 / 3
- pattern
- Type"dots" | "grid" | "plain" Default"dots"
- cell
- Typenumber (pattern pitch at zoom 1, px) Default16
- label
- Typestring (aria-label for the surface) Default"Infinite canvas"
- class
- Typestring Defaultnone
- children
- Typecontent Defaultnone
curl -fsSL https://dither-ui.com/add/dither-add.mjs | node --input-type=module - add DitherInfiniteCanvas