Block
- Block
Block Block Block
| Prop | Type | Notes |
|---|---|---|
| ID | string | |
| Class | string | adds Tailwind utilities |
| Tag | string | semantic tag: div (default), section, article, aside, header, footer, main, nav, figure, search, hgroup |
| Attrs | attrs | |
| Children | children |
Layout and text bricks of @saas-design/ui (generated by @ui8kit/codegen 2.0 for React 19, Svelte 5 and Go templ with identical DOM). Each preview renders the real generated part (React in design-react, Svelte in design-svelte) with ui-* classes from the adapter.
Block is the one semantic root of a file (div, section, article, aside, header, footer, main, nav, figure, search, hgroup). Any file (block, composite, screen) may open on one Block; never nest Block inside Block in one file, never repeat it in a loop.
| Prop | Type | Notes |
|---|---|---|
| ID | string | |
| Class | string | adds Tailwind utilities |
| Tag | string | semantic tag: div (default), section, article, aside, header, footer, main, nav, figure, search, hgroup |
| Attrs | attrs | |
| Children | children |
Box is a generic layout wrapper for internal sections. Not for top-level landmarks — use Block for page regions.
| Prop | Type | Notes |
|---|---|---|
| Class | string | adds Tailwind utilities |
| Tag | string | div only. Use Block for landmarks (aside, section, header, nav). |
| Attrs | attrs | |
| Children | children |
Container wraps page content with a constrained width shell. Optional main or section tag for inner layout regions.
| Prop | Type | Notes |
|---|---|---|
| Class | string | adds Tailwind utilities |
| Tag | string | div, main, or section |
| Attrs | attrs | |
| Children | children |
Grid lays out children in a CSS grid with optional column wrappers.
| Prop | Type | Notes |
|---|---|---|
| Class | string | adds Tailwind utilities |
| Cols | string | column preset: 1–12 or responsive 1-2, 1-3, 1-4 |
| Attrs | attrs | |
| Children | children |
| Prop | Type | Notes |
|---|---|---|
| Class | string | adds Tailwind utilities |
| Span | int | col-span-1..12 |
| Start | int | col-start-1..12 |
| End | int | col-end-1..12 |
| Order | int | order-1..12 |
| Attrs | attrs | |
| Children | children |
Group arranges children in a horizontal flex row. Supports fieldset for related form controls.
| Prop | Type | Notes |
|---|---|---|
| Gap | string | sets gap: a Tailwind spacing step (0, 2, 4, 6, 8, 10, 12 = gap-N) or auto |
| Align | string | sets align |
| Justify | string | sets justify |
| Class | string | adds Tailwind utilities |
| Tag | string | div, fieldset, or dl. Use fieldset for related form controls. |
| Attrs | attrs | |
| Children | children |
Icon renders a class-based span, svg use reference, or text fallback. Decorative icons are hidden from assistive technology by default.
| Prop | Type | Notes |
|---|---|---|
| Name | string | icon name appended to Prefix in class mode |
| Type | string | svg, text, or class (default) |
| BaseClass | string | base icon font class in class mode |
| Prefix | string | icon font prefix in class mode |
| Size | string | sets density preset |
| Class | string | adds Tailwind utilities |
| Href | string | svg use href in svg mode |
| Title | string | svg title / accessible name |
| AriaLabel | string | accessible name for non-decorative icons |
| Decorative | bool | hides the icon from assistive technology |
| Attrs | attrs | |
| Children | children |
Image renders accessible img, picture, and source primitives. Use Decorative for purely visual images so alt stays empty.
| Prop | Type | Notes |
|---|---|---|
| Variant | string | sets appearance preset |
| Size | string | sets density preset |
| Class | string | adds Tailwind utilities |
| Src | string | |
| SrcSet | string | |
| Sizes | string | |
| Alt | string | alternative text; ignored when Decorative |
| Width | string | |
| Height | string | |
| Fit | string | object-fit preset |
| Position | string | object-position preset |
| Aspect | string | aspect-ratio preset |
| Loading | string | eager or lazy (default lazy) |
| Decoding | string | sync, auto, or async (default async) |
| FetchPriority | string | |
| Decorative | bool | marks the image as purely presentational |
| ID | string | |
| Attrs | attrs |
| Prop | Type | Notes |
|---|---|---|
| Class | string | adds Tailwind utilities |
| Attrs | attrs | |
| Children | children |
| Prop | Type | Notes |
|---|---|---|
| SrcSet | string | |
| Src | string | |
| Media | string | |
| Type | string | |
| Sizes | string | |
| Attrs | attrs |
Inline renders inline copy as a span. Use Text for paragraph blocks and Title (as 1–6) for headings.
| Prop | Type | Notes |
|---|---|---|
| Class | string | adds Tailwind utilities |
| Attrs | attrs | |
| Children | children |
Label associates visible text with a form control via the for attribute.
| Prop | Type | Notes |
|---|---|---|
| Class | string | adds Tailwind utilities |
| HTMLFor | string | id of the labeled control |
| Attrs | attrs | |
| Children | children |
Break renders br or wbr for controlled inline wrapping.
| Prop | Type | Notes |
|---|---|---|
| Type | string | br (default) or wbr/word |
| Class | string | adds Tailwind utilities |
| Attrs | attrs |
Link renders a semantic anchor for navigation and prose. Use Button for actions; use Link for destinations.
| Prop | Type | Notes |
|---|---|---|
| Variant | string | sets appearance preset |
| Size | string | sets density preset |
| Class | string | adds Tailwind utilities |
| Href | string | |
| Target | string | explicit target; External implies _blank |
| Rel | string | explicit rel; external links default to noopener noreferrer |
| Download | string | |
| External | bool | opens in a new tab with safe rel defaults |
| Disabled | bool | visually and semantically disables the link |
| AriaCurrent | string | |
| AriaLabel | string | |
| ID | string | |
| Role | string | |
| Attrs | attrs | |
| Children | children |
List renders semantic ul, ol, dl, or menu lists with ListItem children.
| Prop | Type | Notes |
|---|---|---|
| Class | string | adds Tailwind utilities |
| Tag | string | ul, ol, dl, or menu |
| Attrs | attrs | |
| Children | children |
| Prop | Type | Notes |
|---|---|---|
| Class | string | adds Tailwind utilities |
| Tag | string | li, dt, or dd; defaults to li |
| Value | int | optional li value for ordered contexts |
| Attrs | attrs | |
| Children | children |
LucideIcon renders a Lucide glyph (ISC license) by kebab-case name from the generated registry specs/assets/lucide-icons.json. Decorative (aria-hidden) unless a Label is given.
| Prop | Type | Notes |
|---|---|---|
| Name | string | kebab-case Lucide name; an unknown name draws a circle |
| Size | int | width and height in px, 16 by default |
| StrokeWidth | int | stroke width, 2 by default |
| Label | string | accessible name; without it the icon is decorative |
| Class | string | adds Tailwind utilities |
| Attrs | attrs |
Separator renders a semantic or decorative hr.
| Prop | Type | Notes |
|---|---|---|
| Variant | string | sets appearance preset |
| Orientation | string | horizontal or vertical |
| Class | string | adds Tailwind utilities |
| Decorative | bool | hides the rule from assistive technology |
| Attrs | attrs |
Stack arranges children vertically in a flex column. Default layout primitive for spacing sections and form fields.
| Prop | Type | Notes |
|---|---|---|
| Gap | string | sets gap: a Tailwind spacing step (0, 2, 4, 6, 8, 10, 12 = gap-N) or auto |
| Align | string | sets align |
| Justify | string | sets justify |
| Class | string | adds Tailwind utilities |
| Tag | string | div, ul, or ol. Use Block for landmarks (aside, section, header, nav). |
| Attrs | attrs | |
| Children | children |
Text renders body copy: a paragraph by default; Tag picks another text element (blockquote, figcaption, address, pre, or an inline element). Title (as 1–6) is for headings.
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
Text
| Prop | Type | Notes |
|---|---|---|
| Size | string | sets size |
| Weight | string | sets weight |
| Class | string | adds Tailwind utilities |
| Tag | string | p (default), blockquote, figcaption, address, pre, or an inline element (span, strong, em, ...) |
| Attrs | attrs | |
| Children | children |
Title renders a heading (h1–h6) from As (1–6). Defaults to h2 when As is 0 or out of range.
| Prop | Type | Notes |
|---|---|---|
| Size | string | sets size |
| Weight | string | sets weight |
| Class | string | adds Tailwind utilities |
| As | int | maps to h1–h6; 0 and 2 default to h2 |
| Attrs | attrs | |
| Children | children |