Headless UI primitives as native Web Components
State machines run the behaviour, the keyboard and the accessibility. You own every pixel through ::part() and --line-* custom properties. The same tags work in React, Vue, Svelte, Angular, htmx or plain HTML.
Install
bun add @websublime/line-components
bun add @websublime/line-tokens \
@websublime/line-colors @websublime/line-themesUse
import '@websublime/line-components/button';
<line-button>Save</line-button>The theme is optional. Getting Started lists its stylesheet imports.
Live components, not screenshots
Every card below is built from line://ui primitives and themed with line-themes. Press, tab and toggle them.
Composition through slots
Avatar, Badge and Button meet in slots. No component imports another.
Ana SilvaOwner Rui CostaMaintainer Marta SousaReviewer
Keyboard first
Kbd draws each shortcut for the reader's device, as Command glyphs on a Mac and words elsewhere.
Open the command palette Ctrl+K Run a command by name Ctrl+Shift+P Go to the inbox G I Save the draft Ctrl+S Close the panel Esc
State machines, not event soup
Every toggle runs on an explicit machine. Press one and its state flips, announced as pressed.
Deliver by
Headless, so you own the pixels
Restyle any surface with ::part() or a --line-* token. The theme is an accelerator, never a requirement.
Agent-driven UI
@websublime/line-genui renders an agent's A2UI messages as these same components. Your theme still styles them.
Preview
The A2UI renderer stays a preview until it targets the final A2UI v1.0.
Reply rendered
Success: the agent sent a booking form, drawn with your theme.
Accessible by default
WCAG 2.1 AA is the floor. Roles, names, pressed states and focus come with every component.
The toolbar is one Tab stop. Inside it,