Specs
Each spec is the contract for one component: what it is made of, which
variants and states exist, and what a correct implementation must guarantee.
Not a style guide — the class strings live in the implementations, and the
values live in tokens/.
How to read one
- Anatomy — the parts, and which token governs each.
- Variants / sizes — the complete set. If it is not listed, it does not exist; add it here first.
- States — every state a user can reach, including
disabledandloading. - Accessibility — the non-negotiables.
- Do not — the mistakes already made once, so they are not made again.
Why specs at all
Components cannot be shared across stacks — the behaviour layer is bound to the one it is written for. The spec is what travels: the contract the Blade component is held to, and the one a component written on the tokens elsewhere can be held to as well, so the two are the same component rather than lookalikes.
Written so far
| Spec | Covers |
|---|---|
| color.md | Token selection and the accessibility rules |
| chart-series.md | The eight series colours, why they mean nothing, and the order that is the safety property |
| button.md | Button, icon button, the FAB |
| input.md | Input, select, textarea, the two-layer construction, reveal and clearable |
| panel.md | Bordered card, header, action, divided rows, collapsible |
| stat-tile.md | Metric tile, delta, caption, the counter roll |
| table.md | Table, row, cell, alignment and density, the tree table (treegrid) |
| nav-item.md | Sidebar item, active state, collapsed state, chip |
| sidebar.md | One element as rail and drawer, the breakpoint read from the CSS, state handed to the items through @aware, the cookie |
| sheet.md | Mobile sheet, rows, the three tones, snap points and drag |
| modal.md | Modal, sizes, the focus contract |
| drawer.md | Edge panel, and which of the three overlays to reach for |
| dropdown.md | Menu, items, placement, the keyboard contract |
| select.md | Listbox, and when the native select is still right |
| combobox.md | Filtering select, and why multiple is a mode of it |
| switch.md | Switch, and what it is that a checkbox is not |
| date-picker.md | Calendar, ranges, and why dates are strings |
| calendar.md | The month grid the date picker shares, modes, markers, the server's today |
| file-upload.md | Drop zone, previews, and where the line is; host-driven progress rows that speak once per file |
| save-bar.md | Sticky not fixed, a FormData snapshot or the host's data-ds-dirty, native submit and reset, one polite announcement |
| selection-bar.md | Selectable table rows, the mixed header box, Shift ranges with native change events, select all across pages |
| avatar-upload.md | Choose, crop square in the browser, post as a file; never upload |
| share-sheet.md | People, roles, general access and the link; posts as a form, reports by events |
| swipe-actions.md | A row that slides to show its actions; the swipe is a shortcut, never the only way |
| pull-refresh.md | Pull to refresh on touch, a button for everyone, and the three ways a refresh ends |
| accordion.md | Disclosure sections, and the one piece of state |
| checkbox.md | Checkbox, indeterminate, the styled native input |
| radio.md | Radio, and why the group is a fieldset |
| tabs.md | Tabs, panels, and tablist vs navigation |
| tooltip.md | Tip, placement, and why it is never the only copy |
| toast.md | Toast, the always-rendered region, the undo toast's countdown, events and keyboard |
| avatar.md | Image, initials, round and square, the status dot |
| breadcrumb.md | Path, separators, the current page |
| empty-state.md | Nothing here, and what to say about it |
| skeleton.md | Loading placeholder, and who announces it; the shimmer band |
| skeleton-swap.md | Placeholder and content in one cell, aria-busy as the only state, the Livewire route |
| loader.md | Five CSS indicators and the still form of each under reduced motion |
| shimmer.md | The background-clip text sweep, and who announces the wait |
| progress.md | Bar and ring, indeterminate, the one custom property |
| usage-meter.md | Allowance, thresholds, segments, meter vs progressbar |
| upgrade-prompt.md | Near, at and over the limit; the gate that never holds the locked content |
| checklist.md | Counted from its items, the first not done open, why there are no checkboxes |
| counter.md | The digit roll, its two routes, the hidden text, and how it relates to stat-tile |
| sparkline.md | One viewBox stretched, non-scaling strokes, gaps, the generated summary |
| gauge.md | Arcs by dash, bands and their words, meter values past the range |
| activity-heatmap.md | Weeks as rows turned by CSS, the scroll that starts at the end, the one-hue ramp |
| bar-chart.md | Percent x and px y so text never scales, labels thinned by container query, the keyboard model |
| line-chart.md | A nested stretched plot, the monotone curve, gaps, end labels and the legend rule |
| donut-chart.md | Arcs by dash, the fold into Other, largest-remainder shares, when not to use one |
| split-bar.md | Flex-basis segments with a least width, the rest as track, inline names that fall back by container query |
| waffle-chart.md | Cells by largest remainder, one image not a hundred cells, a mark drawn in pieces, reading order and rtl |
| activity-rings.md | Dashes shortened by their round caps, rings narrowed to leave a hole, a goal passed said not drawn |
| slope-chart.md | Two axes in the bar chart's frame, labels spread apart greedily, the change written on every label |
| funnel-chart.md | Centred bars on one hue's ramp, the drop written between stages, values inside or beside by container query |
| radar-chart.md | Polygons from polar points, a marker and a dash per series, names anchored by angle, the table on by default |
| treemap.md | The squarified layout, tiles that clip their own labels, ink chosen for contrast, links that stay links |
| timeline.md | Timeline, timeline-item and timeline-group: the rail each item draws, time elements, sticky groups |
| stepper.md | Steps, statuses, the narrow-width collapse |
| avatar-group.md | Overlapping avatars, the ground ring, the spoken sentence |
| alert.md | Alert, tones, wash-not-tint, the live-region rule |
| badge.md | Badge, three variants, five tones, the dot |
| icon.md | Icon, sizes, the v1 name bridge, the a11y default |
| bottom-nav.md | Bottom bar, items, the safe area |
| pagination.md | Both paginator views |
| otp-input.md | One box per character, one posted field, the complete event |
| tag-input.md | Free-text chips, refusals that stay, separators |
| number-field.md | Native number input, step buttons, press-and-hold |
| slider.md | Native range inputs, one or two on a track; the thumb, the fill, thumbs that do not cross; a histogram whose lit bars and count agree |
| money-input.md | Amounts as digit strings in PHP and JS, locale grouping with a stable caret, the moving name, minor units |
| phone-input.md | A select as the country store, the popover picker, masks, the trunk 0, E.164, a length check that is not libphonenumber |
| shortcut-input.md | Recording on keydown, refusals and conflicts, Tab never taken, the change event, the platform drawing |
| mention-input.md | A textarea combobox only while a trigger is typed, the list under the trigger by a mirror, Undo-able inserts, ids that stop posting when broken |
| color-picker.md | HSV held, sliders of our own, forgiving parsing shared with PHP, contrast cut not rounded, presets that post nothing, the native fallback |
| time-picker.md | A native time field the script turns into a combobox; forgiving typing that never changes the time |
| inline-edit.md | Read state as a button, a field in the same box, save and fail as attributes the host sets |
| command-palette.md | The modal's layer, a combobox that keeps focus, ranking by CSS order, options that change under it |
| sortable-list.md | Pointer drag with capture and FLIP, the keyboard pick-up, the buttons for WCAG 2.5.7, what survives a morph |
| split.md | Sizes as CSS variables for the first paint, the window splitter pattern, which pane a divider controls |
| password-strength.md | The four-level hint and its heuristic |
| copy-button.md | Copy, the in-place confirmation, the failure event |
| swap-button.md | A face that confirms in place, the swap recipe shared with copy, the toggle and its fixed name |
| icon-swap.md | Two icons, or three bars, turned by the parent's state through one custom property, no script |
| rating.md | Stars over radios, "No rating", the readonly image |
| chip-group.md | Filter chips, inputs or links, binding through the group |
| radio-cards.md | Card-shaped radios, columns, stable ids |
| segmented-control.md | Radios or links in a track, the glide directive, why no script is needed |
| button-group.md | Joined buttons, the split button, why it is a class |
| toolbar.md | One Tab stop, roving focus, the hover highlight, pressed |
| toggle-group.md | Single and multiple toggles, what posts, inside a toolbar |
| announcement-bar.md | Banner above the chrome, the pre-paint dismissal check, landmark not live region |
| trial-banner.md | Days left counted on the server, the tone escalation, the ended state, bar or card |
| confirm-button.md | Asking in place, the fail-safe confirm control, the width it grows by |
| hold-button.md | Hold to confirm, the two-press path for keyboard and assistive technology |
| confirm-popover.md | Anchored confirmation, type-to-confirm, why alertdialog |
| popover.md | Anchored panel for anything interactive, placement, the focus contract |
| hover-card.md | Preview on hover or focus, the open and close delays, never on touch |
| context-menu.md | The dropdown's menu at the pointer, Shift+F10, the long press |
| sub-nav.md | A rail section holding its pages, the indent, the collapsed rail |
| top-nav.md | A header and a named nav, container-query fold into a drawer drawn only while open, groups as disclosures not menus |
| page-header.md | The page's heading, container-query layout, secondary actions as data so they can fold into More |
| theme-switcher.md | Light, dark or system, the pre-paint script, the view transition |
| user-menu.md | The account menu on the dropdown, the POST sign-out, the theme row, why it stays a dropdown on phones |
| team-switcher.md | A popover listbox over a no-script select or links, ranked search, the change event x-model can read |
| tree.md | Navigation, single and checkbox trees, structure counted in PHP, the keyboard model |
| filter-bar.md | Search, controls and chips as layout, the collapsible fold rendered once, filter-chip |
| json-viewer.md | Native details drawn in PHP, the breadth-first node budget, stubs, the path and value a node copies |
| presence-stack.md | Avatar status shapes, faces with tooltips, the ghost that fades out, wire:key, announcing |
| photo-grid.md | Grid, masonry and justified rows by container width, the missing-alt rule, "+N", the clip on the link |
| lightbox.md | The modal layer in dark tokens, openers by name, loading and error, swipe, zoom and pan, focus back to the last photo |
| link.md | Three variants at 4.5:1 on every surface, the underline, external, no space after it |
| link-preview.md | Only http(s) is a link, one link named by title and domain, the image fallback without script, dismissal |
| audio-player.md | Own controls over a native audio, the waveform lit by one property, words for the time, one at a time, cues |
| dictation-button.md | Hidden until recognition exists, a toggle renamed as it listens, insertion at the caret, the ways it stops |
| agent-status.md | The status set the agent components share; a polite atomic region with the clock outside it |
| reasoning.md | Native details open while thinking, the reader's choice kept over a re-render, a column-reverse body that follows the text |
| tool-call.md | One invocation as a details card, what draws arguments and results, approval, the group's aggregate |
| agent-plan.md | Steps read from the rendered slot, the current step marked in HTML, compact by CSS |
| agent-timeline.md | Built on the timeline: kind markers, a dashed rail ahead, a fold that leaves rows in place, follow |
| starter-prompts.md | A list of buttons or links that post with no script, fill a field with a native input event, a cancelable select |
| sources.md | Source cards as spans and one link, the shared URL rules, anchors per answer, the citation's hover card |
| response-feedback.md | Toggle thumbs that clear, a form that posts without script, the in-flow follow-up, the thanks region |
| agent-handoff.md | One sentence carries it, avatars hidden, the shared status set, row and divider |
| generation-stats.md | A dl with hidden names on one line, PHP formatting, unusual stops as a badge, a native-details popover |
| api-key-field.md | Never holds a key: value refused, masked hint, the opt-out attributes, the hidden default button, intents |
| provider-status.md | The provider status set, a worst-of summary, one live region that speaks only on a change of state |
| metric-ticker.md | Counters with chips and sparklines; wrap, scroll and a pausable marquee that stands still under reduced motion |
| code-block.md | Chrome without a highlighter, the token colours, the indentation trap, lines that copy |
| scroll-area.md | Native scrolling, scroll-driven edge shadows with a script fallback, when the region is a Tab stop |
| kbd.md | A key sized by its text, and combinations |
| divider.md | Decorative unless it separates groups; the labelled form; vertical in a row |
| expandable-text.md | A measured clamp that fails open, the fade, the button that moves no focus |
| notification-list.md | Groups under headings, a stretched link with nothing nested, unread in words, read and dismiss events |
Sub-components are covered by their parent: accordion-item in accordion.md,
table-cell and table-row in
table.md, panel-row in panel.md, sheet-item in sheet.md, dropdown-item in
dropdown.md, bottom-nav-item in bottom-nav.md, breadcrumb-item in
breadcrumb.md, tab and tab-panel in tabs.md, step in stepper.md, radio-group in radio.md,
chip in chip-group.md, radio-card in radio-cards.md, segment in
segmented-control.md, toolbar-button and toolbar-separator in toolbar.md,
toggle in toggle-group.md, tree-item in tree.md, filter-chip in
filter-bar.md, swipe-action in swipe-actions.md, checklist-item in checklist.md,
tool-call-group in tool-call.md, agent-plan-step in agent-plan.md,
agent-timeline-item in agent-timeline.md, source-card and citation in sources.md,
provider-keys in api-key-field.md, provider-status-item in provider-status.md,
top-nav-item in top-nav.md, file-upload-item in file-upload.md,
notification-group and notification-item in notification-list.md,
and toast-region in toast.md.
Every built component now has a spec. Specs are written alongside their implementation, not before it and not after — a speculative spec for a component nobody has built yet is fiction, and a component that shipped without one is a component whose reasons are already lost.
From the package repo: edit this page on GitHub.