Open source · MIT

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.

Browse the componentsView on GitHub

Install

bun add @websublime/line-components
bun add @websublime/line-tokens \
  @websublime/line-colors @websublime/line-themes

Use

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
Invite a teammate

Keyboard first

Kbd draws each shortcut for the reader's device, as Command glyphs on a Mac and words elsewhere.

  • Open the command paletteCtrl+K
  • Run a command by nameCtrl+Shift+P
  • Go to the inboxG I
  • Save the draftCtrl+S
  • Close the panelEsc

State machines, not event soup

Every toggle runs on an explicit machine. Press one and its state flips, announced as pressed.

Notify me about Mentions Replies Releases Security 2

Deliver by

EmailPushWeekly digest

Headless, so you own the pixels

Restyle any surface with ::part() or a --line-* token. The theme is an accelerator, never a requirement.

Product tour · 2:14

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.

Agent is composing a reply

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, Left and Right move between buttons, and Space toggles one.