/design
Design · Dennis Muensterer
microgfx documentation.
Tokens and the v1 components, read from the microgfx registry.
Units
1u is 4px at the default root size. The steps are 1, 2, 3, 5, 10, 15, 20, 30, 50 and 100.
Type
The IBM Plex Sans files shipped by @fontsource do not include the tnum feature. Numbers use IBM Plex Mono.
Label
Caption
Secondary
Body
Panel title
Section
Page title
40
Display
Colours
Black / white
light
- background #ffffff
- foreground #141414
- muted #f4f4f5
- mutedForeground #3f3f46
- border #d4d4d8
- borderStrong #71717a
- accent #141414
- accentForeground #ffffff
- focus #141414
- ok #15803d
- warn #a16207
- danger #9f1239
dark
- background #0c0c0c
- foreground #f5f5f5
- muted #171717
- mutedForeground #d4d4d8
- border #3f3f46
- borderStrong #a1a1aa
- accent #f5f5f5
- accentForeground #0c0c0c
- focus #f5f5f5
- ok #4ade80
- warn #facc15
- danger #fda4af
Dracula
light
- background #f8f8f2
- foreground #282a36
- muted #ececf4
- mutedForeground #4c4f6b
- border #c8c8d4
- borderStrong #4c4f6b
- accent #bd93f9
- accentForeground #282a36
- focus #6d28d9
- ok #157a32
- warn #8a5a00
- danger #9f1239
dark
- background #282a36
- foreground #f8f8f2
- muted #44475a
- mutedForeground #b7bdd8
- border #6272a4
- borderStrong #b7bdd8
- accent #bd93f9
- accentForeground #282a36
- focus #8be9fd
- ok #50fa7b
- warn #f1fa8c
- danger #ff8b8b
Catppuccin
light
- background #eff1f5
- foreground #4c4f69
- muted #e6e9ef
- mutedForeground #5c5f77
- border #bcc0cc
- borderStrong #5c5f77
- accent #8839ef
- accentForeground #ffffff
- focus #1e66f5
- ok #1e7a32
- warn #92400e
- danger #d20f39
dark
- background #1e1e2e
- foreground #cdd6f4
- muted #313244
- mutedForeground #bac2de
- border #45475a
- borderStrong #9399b2
- accent #cba6f7
- accentForeground #1e1e2e
- focus #89b4fa
- ok #a6e3a1
- warn #f9e2af
- danger #f38ba8
Atom One
light
- background #fafafa
- foreground #383a42
- muted #f0f0f1
- mutedForeground #4b4f58
- border #d0d0d4
- borderStrong #4b4f58
- accent #2f5fce
- accentForeground #ffffff
- focus #2f5fce
- ok #2d6a2e
- warn #8a5800
- danger #c13535
dark
- background #282c34
- foreground #abb2bf
- muted #3e4451
- mutedForeground #c8ccd4
- border #5c6370
- borderStrong #abb2bf
- accent #61afef
- accentForeground #282c34
- focus #61afef
- ok #98c379
- warn #e5c07b
- danger #ff8d94
Nord
light
- background #eceff4
- foreground #2e3440
- muted #e5e9f0
- mutedForeground #3b4252
- border #d8dee9
- borderStrong #4c566a
- accent #88c0d0
- accentForeground #2e3440
- focus #5e81ac
- ok #2f6b3a
- warn #8a5a00
- danger #b00020
dark
- background #2e3440
- foreground #eceff4
- muted #3b4252
- mutedForeground #d8dee9
- border #4c566a
- borderStrong #d8dee9
- accent #88c0d0
- accentForeground #2e3440
- focus #88c0d0
- ok #a3be8c
- warn #ebcb8b
- danger #ffb1b8
Everforest
light
- background #fdf6e3
- foreground #5c6a72
- muted #f4f0d9
- mutedForeground #4a585e
- border #e0dcc7
- borderStrong #5c6a72
- accent #a7c080
- accentForeground #1e2326
- focus #6e8600
- ok #3f6b1e
- warn #8a5a00
- danger #c13535
dark
- background #2d353b
- foreground #d3c6aa
- muted #343f44
- mutedForeground #c7c0a4
- border #4a555b
- borderStrong #c7c0a4
- accent #a7c080
- accentForeground #1e2326
- focus #a7c080
- ok #a7c080
- warn #dbbc7f
- danger #ffb4b4
Motion
- dur-1
- 80ms
- dur-2
- 160ms
- dur-3
- 240ms
Reduced motion sets the three durations to 0.01ms.
Icon
The only way to render a Phosphor icon. Light by default, fill when on.
Props
| Prop | Type | Detail |
|---|---|---|
| name | IconName | A ph: name from the explicit map. |
| size | 16 | 20 | 24 | 32 | 4u, 5u, 6u, or 8u. |
| state | on | Switches the weight to fill. |
| label | string | Accessible name. Without it the icon is hidden. |
Accessibility
- aria-hidden unless label is set.
- Icon-only controls put the name on the control, not the icon.
- Decorative icons do not get a label.
Usage
<Icon name="ph:house" size={20} />Label
Uppercase mono eyebrow for field keys, tags, and serials. Case is CSS, not the source string.
Props
| Prop | Type | Detail |
|---|---|---|
| text | string | Sentence-case source text. JSX may pass it as children. |
| children | ReactNode | Sentence-case source text. |
| tone | muted | accent | ok | warn | danger | Colour of the mark. |
| variant | label | tag | serial | Text, bordered tag, or serial. |
| href | string | Turns a tag into a filter link. |
| filterLabel | string | Accessible name when the tag filters a list. |
Accessibility
- Real text, never an image of text.
- A tag that filters supplies filterLabel as its accessible name.
- Uppercase comes from text-transform so screen readers keep the source case.
Usage
<Label variant="tag" tone="accent">Projects</Label>
Panel
A data container. Corner ticks mark a container of data, not every box.
plain
Dennis Muensterer
ticked
Dennis Muensterer
dashed
Dennis Muensterer
inset
Dennis Muensterer
Props
| Prop | Type | Detail |
|---|---|---|
| label | string | Names the section. |
| serial | string | Stable identifier, shown only when real. |
| updatedAt | Date | string | Freshness stamp. |
| ticks | "always" | "hover" | "none" | boolean | When ticks are rendered. Default: always for ticked, hover for plain, none for dashed/inset. |
| showSize | boolean | Measures the rendered size in U. |
Accessibility
- The root is a section labelled by its heading.
- Corner ticks are decorative.
- The dimension label is the measured size, in U.
Usage
<Panel label="Profile" variant="ticked">…</Panel>
Stat
One key number in Plex Mono. The sparkline component arrives in a later pass.
Published pages
27
Themes
6
Props
| Prop | Type | Detail |
|---|---|---|
| label | string | What the number measures. |
| value | number | The quantity. |
| unit | string | SI unit, separated by a thin space. |
| delta | number | Change, spoken as up or down. |
| trend | up | down | flat | Direction when it is not the sign of delta. |
| size | sm | lg | lg uses the readout size. |
Accessibility
- The value and unit are one string.
- A delta says up, down, or unchanged, not only an arrow.
- Digits use Plex Mono because the Sans subset has no tnum.
Usage
<Stat label="Themes" value={6} size="lg" />KeyValue
Spec-sheet pairs. Keys are eyebrow labels, values sit beside them.
- Name
- Dennis Muensterer
- Place
- Mainz
- Born
- 1997-06-16
- Name
- Dennis Muensterer
- Place
- Mainz
- Born
- 1997-06-16
- Name
- Dennis Muensterer
- Place
- Mainz
Props
| Prop | Type | Detail |
|---|---|---|
| items | { key, value, href?, mono? }[] | The pairs to show. |
| variant | inline | stacked | leader | Leader draws dotted rules on wide rows. |
Accessibility
- The list is a description list, dl, dt, and dd.
- Links in values keep their own accessible name.
Usage
<KeyValue items={[{ key: "Place", value: "Mainz" }]} variant="stacked" />StatusDot
A discrete state. Shape and colour together: filled, ring, half, or triangle.
Props
| Prop | Type | Detail |
|---|---|---|
| status | ok | warn | danger | idle | The state. |
| label | string | Visible, or visually hidden for the dot variant. |
| pulse | boolean | Soft blink. Off under reduced motion. |
Accessibility
- Each status uses a different shape, not colour alone.
- The label is always in the accessibility tree.
- Pulse animation is removed when motion is reduced.
Usage
<StatusDot status="ok" label="Live" variant="dot+label" />
Timestamp
Freshness and dates. Relative under seven days, absolute after that.
Example:
Props
| Prop | Type | Detail |
|---|---|---|
| date | Date | string | number | ISO string or epoch milliseconds. The component also accepts a Date. |
| mode | relative | absolute | auto | auto is relative under 7 days. |
| format | iso | prose | Absolute rendering. ISO is 2026-11-04 07:31. |
| staleAfter | number | Milliseconds after which the stamp says stale. |
| locale | en | de | German uses the formal handbook register. |
Accessibility
- Renders a time element with a machine datetime.
- The title is the absolute stamp with its time zone.
- The visible text refreshes at most once a minute.
Usage
<Timestamp date="2026-11-01T12:00:00Z" variant="label" locale="en" />
Ruler
A hairline rule, or a layout axis labelled U. Physical millimetres need calibration.
Props
| Prop | Type | Detail |
|---|---|---|
| variant | rule | ruler | rule separates. ruler is an axis. |
| orientation | horizontal | vertical | Direction of a rule. |
| style | solid | dashed | dotted | Dashed is provisional. Dotted is a leader. |
| scale | layout | physical | layout is U. physical is ≈ MM until calibrated. |
| length | number | Span of a layout ruler, in U. |
Accessibility
- A rule is a separator.
- A ruler with labels is an image with a text alternative.
- Uncalibrated physical rulers say ≈ MM and link to calibration.
Usage
<Ruler variant="ruler" length={40} />Input
Text entry with a visible uppercase label, optional hint, error, and a unit.
https://muensterer.tech
Props
| Prop | Type | Detail |
|---|---|---|
| label | string | Visible label above the field. |
| hint | string | Described by aria-describedby. |
| error | string | Shown when the value is invalid. |
| prefix | ReactNode | Unit or mark before the value. |
| suffix | ReactNode | Unit after the value. |
| variant | text | search | textarea | Single line, search, or multiline. |
Accessibility
- The label is visible and associated with the control.
- Hint and error are referenced with aria-describedby.
- The error uses role alert.
- The control boundary uses border-strong, at least 44px tall.
Usage
<Input label="Name" hint="As it should appear" />
DotMatrix
A grid of dots drawn from text, a pattern, or a series. The theme colour is the ink.
Props
| Prop | Type | Detail |
|---|---|---|
| label | string | What the grid says, for assistive tech. |
| lines | string[] | Readout text. Drawn uppercase, 24 characters per line. |
| pattern | (0 | 1)[][] | An explicit module pattern. |
| values | number[] | One column of dots per value. |
| pitch | number | Module pitch in units. 1u is the default. |
| dot | number | Dot size as a fraction of the pitch. Default 0.8. |
Accessibility
- The grid is role img. The label states the reading, not the pixels.
- Lines clip at 24 characters. The label keeps the full reading.
- This pass is a still frame. Nothing moves.
Usage
<DotMatrix label="Round trip 38 ms" lines={["RTT 38 MS"]} />QR
A page address drawn as a dot-matrix code on a light plate. The address is also written out.
v 3 · M
https://muensterer.tech/design?theme=bw#qr
v 3 · Q
https://muensterer.tech/design
The code stays dark on a light plate in every mode. Everforest light is under 7:1, so that theme uses #ffffff and #141414.
Props
| Prop | Type | Detail |
|---|---|---|
| value | string | URL, including query and hash when that state is public. |
| variant | inline | widget | inline sits in a page. widget is the small share plate. |
| ecc | M | Q | Error correction. Widget defaults to Q, inline to M. |
| shortLink | string | Optional /r/<slug> used only when useShort is set. |
| useShort | boolean | Encode shortLink instead of value. |
| caption | string | Eyebrow on the widget. |
| locale | en | de | Language of the code label and the version note. Default en. |
Accessibility
- The code is role img. The label names the URL.
- The same URL is selectable text next to the code.
- Ink stays on a light plate in dark mode. Contrast under 7:1 falls back to #ffffff and #141414.
- Finder, alignment, timing, and function modules are solid. Data modules are dots.
Usage
<QrCode value="https://muensterer.tech/now" variant="inline" />
Table
A lookup table. Headers are eyebrow labels. Numbers use Plex Mono.
| text-label | 11 | 16 | 0.12em |
| text-sm | 14 | 20 | — |
| text-base | 16 | 24 | — |
| text-2xl | 32 | 36 | -0.01em |
| text-display | 56 | 56 | -0.02em |
Props
| Prop | Type | Detail |
|---|---|---|
| columns | { key, label, align?, numeric? }[] | Header text stays sentence case. CSS sets the case. |
| rows | Record<string, string | number | null>[] | An empty cell renders an em dash. |
| variant | default | dense | dense tightens the row padding. |
| sortKey | string | Column key currently sorted. |
| sortDirection | asc | desc | Direction for sortKey. |
| onSort | (key: string) => void | When set, headers are buttons and expose aria-sort. |
| caption | string | Names the table. |
| locale | en | de | Formats numeric cells and the empty state. Default en. |
Accessibility
- Native table. Column headers use scope=col.
- Sortable headers expose aria-sort.
- On narrow screens the header is visually hidden, so a sortable table shows a visible Sort by row of buttons above the rows.
- On narrow screens each cell repeats its header for sighted readers. The header row stays in the accessibility tree.
- Numeric cells use Plex Mono. Plex Sans has no tabular figures in this subset.
Usage
<Table columns={[{ key: "token", label: "Token" }, { key: "px", label: "Size (px)", numeric: true }]} rows={[{ token: "text-sm", px: 14 }]} />Meter
One value against a known range, as a bar or a row of segments.
Specimen
Props
| Prop | Type | Detail |
|---|---|---|
| label | string | What the meter measures. |
| value | number | The reading. The bar clamps to the range. |
| min | number | Range start. Default 0. |
| max | number | Range end. Default 100. |
| unit | string | SI unit, separated by a thin space. |
| variant | bar | segmented | segmented draws a row of LED cells. |
| segments | number | Cell count for the segmented variant. Default 10. |
| status | ok | warn | Optional state. Shown as a word and the status colour. |
| locale | en | de | Formats the reading. Default en. |
Accessibility
- A native meter carries the value. The drawn bar is the visible track, because the browser widget cannot hold a square LED scale.
- ok and warn are a word plus the token colour, never colour alone.
- Range ends show when the scale is not 0 to 100.
Usage
<Meter label="Round trip" value={38} min={0} max={200} unit="ms" status="ok" />Dialog
Accessible modal dialog with focus trap, backdrop blur, and retro-industrial styling.
Props
| Prop | Type | Detail |
|---|---|---|
| title | string | Dialog title announced by screen readers. |
| description | string | Descriptive body text wired to aria-describedby. |
| variant | dialog | alertdialog | Standard modal dialog or alertdialog for destructive/urgent confirmation. |
| modal | boolean | Whether the dialog renders as a modal with backdrop and inert background. |
Accessibility
- Focus is trapped inside the popup while open.
- Escape key dismisses the dialog.
- Focus returns to the trigger element on close.
- aria-labelledby and aria-describedby are automatically wired to Title and Description.
- Alert dialog uses role alertdialog for assistive tech.
Usage
<Dialog><DialogTrigger>Open</DialogTrigger><DialogContent><DialogTitle>Title</DialogTitle><DialogDescription>Description</DialogDescription></DialogContent></Dialog>
Select
Accessible single-select dropdown built on WAI-ARIA listbox pattern with retro-industrial styling.
Props
| Prop | Type | Detail |
|---|---|---|
| placeholder | string | Placeholder label displayed when no option is selected. |
| value | string | Selected option value. |
| disabled | boolean | Whether the select is disabled. |
Accessibility
- Uses the WAI-ARIA listbox pattern with roving tabindex.
- Supports arrow key navigation, Home/End, and typeahead search.
- Escape closes the popup and returns focus to the trigger.
- Minimum 44px touch target height on triggers and items.
Usage
<Select items={[{ value: "1", label: "One" }]}><SelectTrigger><SelectValue placeholder="Choose" /></SelectTrigger><SelectContent><SelectItem value="1">One</SelectItem></SelectContent></Select>Switch
Accessible toggle switch with a horizontal track and retro-industrial scanline thumb.
Props
| Prop | Type | Detail |
|---|---|---|
| checked | boolean | Controlled checked state. |
| defaultChecked | boolean | Default checked state when uncontrolled. |
| disabled | boolean | Whether the switch is disabled. |
| label | string | Accessible label (aria-label). |
Accessibility
- Renders role switch with aria-checked reflecting state.
- Toggled via Space and Enter keys.
- Enforces 44px minimum touch target.
Usage
<Switch aria-label="Toggle setting"><SwitchThumb /></Switch>
Tabs
Accessible tabbed navigation with roving tabindex and phosphor indicator.
48 registered microgfx components. Monospace typography with tabular numerals.
Props
| Prop | Type | Detail |
|---|---|---|
| defaultValue | string | Default active tab value. |
| value | string | Controlled active tab value. |
| orientation | horizontal | vertical | Orientation of the tab list. |
Accessibility
- Implements WAI-ARIA tabs pattern with role tablist, tab, and tabpanel.
- Supports Arrow, Home, and End key navigation.
- Each tab trigger satisfies 44px minimum touch target.
Usage
<Tabs defaultValue="tab1"><TabsList><TabsTrigger value="tab1">Tab 1</TabsTrigger></TabsList><TabsContent value="tab1">Content</TabsContent></Tabs>
Progress
Accessible progress bar with determinate and indeterminate states and phosphor accent.
Props
| Prop | Type | Detail |
|---|---|---|
| value | number | null | Current progress value between 0 and max (or null for indeterminate). |
| max | number | Maximum progress value, defaults to 100. |
| label | string | Accessible label for the progressbar. |
Accessibility
- Renders role progressbar with aria-valuenow, aria-valuemin, and aria-valuemax.
- Null value switches to aria-valuenow omitted (indeterminate).
- Scanline animation honors prefers-reduced-motion.
Usage
<Progress value={60}><ProgressTrack><ProgressIndicator /></ProgressTrack></Progress>Skeleton
Retro-industrial loading placeholder with CRT scanline and pulse animation.
Props
| Prop | Type | Detail |
|---|---|---|
| variant | text | rect | circle | Placeholder geometry: stacked lines, rectangle, or circle. |
| lines | number | Number of lines for text variant (1 to 12). |
| animation | pulse | scanline | none | Animation effect. |
| width | string | CSS width override. |
| height | string | CSS height override. |
| label | string | Screen reader announcement when acting as a live status region. |
Accessibility
- Hidden from assistive tech by default (aria-hidden).
- When label is provided, acts as role status with aria-live polite.
- Scanline animation stops under prefers-reduced-motion.
Usage
<Skeleton variant="text" lines={3} animation="scanline" />Radio Group
Accessible single-choice radio button group with square accent indicators.
Active target: production
Props
| Prop | Type | Detail |
|---|---|---|
| name | string | HTML form field name. |
| value | string | Controlled selected value. |
| defaultValue | string | Initial selected value. |
| disabled | boolean | Whether the radio group is disabled. |
Accessibility
- Implements WAI-ARIA radiogroup pattern with role radiogroup and radio.
- Supports Arrow-key selection and roving focus.
- 44px minimum touch target on each option.
Usage
<RadioGroup defaultValue="opt1"><RadioItem value="opt1">Option 1</RadioItem><RadioItem value="opt2">Option 2</RadioItem></RadioGroup>
Tag Input
Multi-token chip editor with keyboard delimiters, paste splitting, and deduplication.
3 of 6 tags allocated
Props
| Prop | Type | Detail |
|---|---|---|
| placeholder | string | Input placeholder text when empty. |
| disabled | boolean | Disables adding and removing tags. |
| maxTags | number | Maximum number of tags allowed. |
| value | string[] | Controlled array of tag strings. |
Accessibility
- Enter or comma commits tag chips.
- Backspace on empty input removes the trailing chip.
- Remove buttons have clear accessible labels (aria-label).
- Touch targets meet 44px minimum.
Usage
<TagInput placeholder="Add tags..." defaultValue={["ui", "tokens"]} />Loading Indicator
Contextual animated loading indicators with accessible live announcements.
Props
| Prop | Type | Detail |
|---|---|---|
| context | stream | palette | widget | export | Semantic loading context determining animation type. |
| size | number | Indicator size in pixels. |
| color | string | CSS color, defaults to currentColor. |
| label | string | Accessible announcement for screen readers. |
| locale | en | de | Locale for default accessible text. |
| politeness | polite | assertive | Live region politeness. |
Accessibility
- Acts as role status with aria-live and aria-busy.
- Includes screen-reader accessible label text.
- Respects prefers-reduced-motion.
Usage
<LoadingIndicator context="widget" size={24} />Toast
Ephemeral notifications with ticked corner markers and an accent edge.
Sample Notification
Ticked corner markers with an accent edge
Props
| Prop | Type | Detail |
|---|---|---|
| title | string | Toast headline. |
| description | string | Optional notification details. |
| variant | info | success | warning | error | Semantic variant styling. |
Accessibility
- Announced as live regions via Base UI Toast provider.
- Dismiss button meets 44px minimum touch target.
- Respects prefers-reduced-motion.
Usage
<ToastRoot><ToastContent><ToastTitle>Saved</ToastTitle></ToastContent><ToastClose /></ToastRoot>
GlassPanel
Frosted glass container responding to global transparency and blur tokens.
Translucent Panel (div)
Frosted surface reacting to global glass opacity and backdrop-blur tokens.
Header Surface (semantic header)
High-contrast border with subtle backdrop blur effect.
Props
| Prop | Type | Detail |
|---|---|---|
| as | div | header | footer | HTML wrapper element. |
Accessibility
- Semantic container adapting transparency under prefers-reduced-transparency.
Usage
<GlassPanel as="div">Content</GlassPanel>
LogoMark
Monochrome geometric brand mark SVG with scalable pixel sizing.
Props
| Prop | Type | Detail |
|---|---|---|
| title | string | Accessible SVG title label (defaults to 'mnstrr'). |
| size | number | Pixel dimensions for width and height (default 32). |
Accessibility
- Includes title and role img when title is provided; aria-hidden when omitted.
Usage
<LogoMark size={32} title="mnstrr" />Kbd
Monospace keyboard shortcut badge with screen-reader accessible symbol labels.
Props
| Prop | Type | Detail |
|---|---|---|
| keys | string[] | Array of key symbols representing shortcut sequence. |
| variant | outline | subtle | solid | Visual badge styling. |
| size | sm | md | Badge sizing. |
Accessibility
- Uses semantic kbd element.
- Screen reader symbols automatically map to accessible names (⌘ -> Command).
- High contrast and legible monospace typography.
Usage
<Kbd variant="outline">⌘</Kbd><Kbd variant="outline">K</Kbd>
Accordion
Accessible vertically stacked disclosure panels supporting single or multiple expansion.
Props
| Prop | Type | Detail |
|---|---|---|
| multiple | boolean | Whether multiple panels can be expanded simultaneously. |
| disabled | boolean | Disables interaction across all items. |
| defaultValue | string[] | Initial expanded item values. |
| value | string[] | Controlled expanded item values. |
Accessibility
- Follows WAI-ARIA Accordion pattern with aria-expanded and aria-controls.
- ArrowDown and ArrowUp navigate between headers.
- Home and End jump to first and last headers.
- Space and Enter toggle panel expansion.
- Triggers meet 44px minimum touch target.
Usage
<Accordion defaultValue={["item-1"]}><AccordionItem value="item-1"><AccordionHeader><AccordionTrigger>Section 1</AccordionTrigger></AccordionHeader><AccordionPanel>Details</AccordionPanel></AccordionItem></Accordion>Slider
Accessible range slider with microgfx industrial styling and precision tick marks.
Props
| Prop | Type | Detail |
|---|---|---|
| label | string | Visible label associated with the slider. |
| min | number | Minimum allowed value (defaults to 0). |
| max | number | Maximum allowed value (defaults to 100). |
| step | number | Granularity of value steps (defaults to 1). |
| defaultValue | number | number[] | Uncontrolled initial value. |
| value | number | number[] | Controlled value. |
| disabled | boolean | Disables interaction. |
| ticks | boolean | number | Renders precision tick marks along the track. |
Accessibility
- Wired to role slider with aria-valuenow, aria-valuemin, aria-valuemax.
- Supports keyboard adjustments with Arrow keys, PageUp/PageDown, Home/End.
- Touch target height satisfies 44px minimum.
Usage
<Slider label="Gain" defaultValue={40} min={0} max={100} ticks />Popover
Floating popover primitive with tooltip and specsheet modes, hairline borders, and overlay tokens.
Props
| Prop | Type | Detail |
|---|---|---|
| mode | "tooltip" | "specsheet" | Interaction mode: hover/focus non-interactive tooltip or click-driven interactive specsheet. |
| eyebrow | string | Monospace uppercase header label above content. |
| size | "auto" | "sm" | "md" | Maximum width constraint (sm: 60u/240px, md: 100u/400px, auto: clamps at 100u). |
| placement | "top" | "bottom" | "left" | "right" | "auto" | Preferred positioning axis relative to trigger. |
| offset | number | Offset distance from trigger in u units (default 2 = 8px). |
| closeLabel | string | Accessible label for specsheet close button. |
Accessibility
- Tooltip mode uses role tooltip with aria-describedby association.
- Specsheet mode uses role dialog with aria-modal false and interactive focus management.
- Escape dismisses popover in both modes and returns focus to trigger.
- Specsheet includes accessible close button with translated label.
Usage
<Popover mode="tooltip" trigger={<button>Hover me</button>} content="Tooltip info" />SegmentedControl
Single-select control among 2 to 5 options with hairline collapsed border, full roving tabindex, and accent inset indicator.
Active view: ruler
Props
| Prop | Type | Detail |
|---|---|---|
| label | ReactNode | Accessible label for the radiogroup. |
| labelPlacement | "above" | "sr-only" | Visual placement of the label (default: above). |
| options | SegmentedOption[] | Array of 2 to 5 selectable options with value and label. |
| value | string | Controlled selected value. |
| defaultValue | string | Initial value for uncontrolled mode. |
| size | "sm" | "md" | Size variant: sm (8u/32px mono) or md (11u/44px touch-safe). |
| disabled | boolean | Disables interaction across all options. |
Accessibility
- Wired to role radiogroup with aria-labelledby.
- Options render as role radio with aria-checked.
- Full roving tabindex with ArrowLeft/Right, ArrowUp/Down, Home/End, Space/Enter.
- Label is always preserved in DOM (supports forced-colors and screen readers).
- md size guarantees 44px minimum touch targets.
Usage
<SegmentedControl label="Mode" options={[{ value: "a", label: "A" }, { value: "b", label: "B" }]} value="a" onValueChange={setValue} />FilterChip
Multi-select toggle chip with count badge, independent tab stops, and subtle shake animation on invalid deselect.
Filter criteria: commits, notes
Props
| Prop | Type | Detail |
|---|---|---|
| label | ReactNode | Visible and accessible label for the chip. |
| count | number | Tabular numerical count badge displayed after the label. |
| value | string | Unique string value when used inside a FilterChip.Group. |
| pressed | boolean | Controlled toggle state. |
| defaultPressed | boolean | Initial toggle state for uncontrolled standalone usage. |
| size | "sm" | "md" | Size variant: sm (8u/32px) or md (11u/44px). |
| disabled | boolean | Disables interaction. |
Accessibility
- Standalone chip renders role button with aria-pressed.
- Group renders role group with dynamic '{label} — {count} of {total} selected' aria-label.
- Independent tab stops between chips (standard Tab / Shift+Tab navigation).
- Toggleable with Space and Enter keys.
- Count badge is included in accessible name.
Usage
<FilterChip.Group label="Sources" value={active} onValueChange={setActive}><FilterChip value="commits" label="Commits" count={42} /></FilterChip.Group>EmptyState
Dashed hairline placeholder indicating an empty or provisional state across inline, block, and bento tile layouts.
NO ARTIFACTS
No published packages found
Deploy a new version to see build artifacts and release logs here.
EMPTY QUEUE
All jobs completed
Background worker queue is currently idle.
Props
| Prop | Type | Detail |
|---|---|---|
| eyebrow | string | Monospace uppercase identifier label (e.g., 'NO PINS'). |
| title | string | Short sentence-case explanation of the state. |
| body | string | Single explanatory sentence. |
| description | string | Alternative alias for body explanation. |
| variant | "inline" | "block" | "tile" | Layout variant: inline (table/row), block (panel section), or tile (bento cell min 40u). |
| action | EmptyStateAction | ReactNode | Single primary action with optional keyboard shortcut. |
Accessibility
- Root container has aria-live='polite' for dynamic transition announcement.
- Keyboard shortcuts rendered in kbd elements are appended to action button aria-label.
- Swaps dashed border for solid 1px ButtonBorder in forced-colors mode.
Usage
<EmptyState variant="block" eyebrow="NO PINS" title="Nothing pinned yet" body="Pin a page from the command bar." action={{ label: "Open command bar", shortcut: "⌘K", onClick: openBar }} />Sparkline
A trend of at most 64 numbers, with the latest value printed and the series in a table. Stat stays the number.
| Value |
|---|
| 12 |
| 18 |
| 14 |
| 25 |
| 22 |
| 38 |
| 30 |
| 45 |
| 42 |
| 60 |
| 55 |
| 75 |
| Value |
|---|
| 12 |
| 18 |
| 14 |
| 25 |
| 22 |
| 38 |
| 30 |
| 45 |
| 42 |
| 60 |
| 55 |
| 75 |
| Value |
|---|
| 12 |
| 18 |
| 14 |
| 25 |
| 22 |
| 38 |
| 30 |
| 45 |
| 42 |
| 60 |
| 55 |
| 75 |
Props
| Prop | Type | Detail |
|---|---|---|
| values | number[] | Series. Only the last 64 points are drawn. |
| variant | 'line' | 'bars' | 'dots' | How the series is drawn. Default line. No axes. |
| width | number | string | Width of the SVG. |
| height | number | string | Height of the SVG. |
| color | string | Stroke or fill. Default currentColor. |
| showMinMax | boolean | Draws optional dots on the minimum and maximum. |
| showLast | boolean | Prints the last value at the end of the series. Default on. |
| ariaLabel | string | Replaces the generated one-line conclusion. |
| locale | en | de | Language of the conclusion, the printed value, and the table. Default en. |
Accessibility
- The SVG is role img. The label is a conclusion, such as rising and the latest value.
- A visually hidden table lists every plotted value.
- The graphic is server-rendered SVG. It does not draw itself in.
Usage
<Sparkline values={[10, 20, 15, 30, 25]} variant="line" showMinMax locale="en" />Clock
A 24-hour time and date readout. Timestamp stays the freshness stamp. The clock does not announce each tick.
Props
| Prop | Type | Detail |
|---|---|---|
| showDate | boolean | Shows the date beside the time. Default on. |
| timezone | string | IANA timezone, such as UTC. Invalid names fall back. |
| static | boolean | Paints once. Also on when motion is reduced, including data-motion=reduced. |
| showSeconds | boolean | Shows seconds. Default on. |
| locale | en | de | Formats the date. Time stays 24-hour. Default en. |
Accessibility
- Uses time with a machine dateTime. It is not an aria-live region, so ticks are not announced.
- Tabular numerals keep the digits from shifting.
- Reduced motion paints the current time once and does not start an interval.
Usage
<Clock timezone="UTC" locale="en" />
FileTree
Nested nodes from inline JSON, pages.json, or a projects document. static shows names. links follows href. A locked node says private and is not a link.
Selected file: file-index
Pages
Projects