React components for dense, work-heavy interfaces: toolbars, data tables, menus, inspectors and app shells. Built on Base UI, installed as source. Free under MIT.
Menu opened on an object (right-click, long-press, Menu key): Menu's rows and submenus; marks the object while open.
An example of Context menu: client list.
TanStack Table driving the Keyline table parts: useDataTable (sorting, multi-sort, filters, a search, paging, row selection, column visibility; each slice controlled or not) and DataTable, DataTableBulkBar, DataTablePagination and DataTableSearch. Selecting a row re-renders that row alone.
Pure helpers behind the Data Table: the sort cycle and multi-sort ordinal of a column, aria-sort, a column's alignment, the pager's range, and the filter model (text, set and range filters, a search, and the filter's words for a token).
An example of Data Table: orders data table.
Single-date calendar and picker on react-day-picker, sharing the range calendar's look, wording and bounds; the chosen day floods ink. DateTimePicker adds a time row (a TimeField cell, 24- or 12-hour, with optional minTime/maxTime) under the calendar.
An example of Date picker: client meeting.
An example of Date picker: delivery day.
Range calendar on react-day-picker (pinned) styled as a Keyline grid: a flooded range with ink ends, row-break notches, hover and keyboard preview, hatched unavailable days, month and year dropdowns, min/max, presets and a day count.
An example of Date range picker: vacation request.
Dialog (header, scrolling body, footer cells) and AlertDialog (an attention cell; focus lands on the safe action): region-framed modals on Base UI. Also installable as @keyline-ui/alert-dialog.
An example of Dialog: new client.
DirectionProvider: sets a subtree's writing direction for both the DOM (Keyline's CSS and DOM-reading components) and Base UI (the sides tooltips, popovers and menus take; arrow keys). useDirection reads it.
An example of Direction: mirrored invoices.
A sheet you swipe away, on Base UI Drawer as the reference: swipe with velocity, snap points, nested drawers, focus trap, Escape and the keyboard inset are the library's. Keyline: the page-facing edge at region weight, a grip on it, logical sides (end and start mirror in RTL), the system's motion timings.
An example of Drawer: truck route.
Nothing here, said plainly: a count cell, the message and the way out, in one frame or as a cell. Empty, error and first-use kinds.
An example of Empty: call log.
An example of Empty: client search.
Field, input, affix cells, field group and validation with an inserted attention cell. Form (Base UI Form) and vertical, horizontal or responsive field orientation.
An example of Field: carton size.
An example of Field: new order.
An example of Field: track shipment.
A link that previews its destination (Base UI Preview Card): the underline draws along its keyline during the open delay; the card is a control frame of cells (media, title, code, facts on seams) one gutter from the link. Supplementary content only.
An example of Hover card: client cards.
Non-modal contextual panel: header with the inspected object's code, key/value cells and a sticky action strip.
An example of Inspector: order inspector.
List rows on shared keylines: media cell, content, meta and action cells; render-prop rows for links and buttons.
An example of Item: alert settings.
A key in the Code voice: a key cell with a 2px floor; KbdGroup joins a chord's keys on seams (nested kbd), with the separator read, not drawn. Used by Command.
An example of Kbd: order shortcuts.
Keyline tokens and construction primitives: role weights, the optional cut (--kl-cut), cells, flood, lamp, unfold, dock, pending. Source tokens go to your :root and .dark; theme/tokens.ts holds them as data.
An agent skill for coding assistants: add Keyline items, compose them, and upgrade installed items from the changelog.
The configuration contract as data: palette presets, fonts, weights, cut, density, theme, motion. Generates the CSS, attributes and registry item a configuration needs, and a runtime KeylineConfigScope.
Maps shadcn's semantic tokens, radius, fonts, focus ring and page body to Keyline, so stock shadcn components take Keyline's look. Not needed to use Keyline components.
Flood origin, zero-bounce stretch springs and the useStretch hook. No runtime provider.
Carries subtree configuration (palette, font, weights, cut, density, motion, theme, dir) onto portaled overlays. No provider.
Merge Keyline's classes and styles with a className or style given as a function of state, and mirror variant props to data attributes.
A step in a conversation or activity timeline in the Code voice: a glyph cell and words, a separator between seams, or a keyline under the words; pending runs the pending segment and is a polite status.
An example of Marker: order activity.
Docked menu with code cells, shortcut cells, ink cursor, destructive rows, checkbox and radio items, and submenus.
A row of menus in one frame (Base UI Menubar): title key cells, the open title inverse, menus docked to the frame's edge with Menu's rows and checkbox and radio items.
An example of Menubar: sales report menus.
An example of Menu: notification menu.
An example of Menu: order actions.
A sender's run in a conversation, on one reading edge: the header (name, time), every bubble's text, the file glyphs and the receipt start on the same line. Consecutive bubbles stack on shared keylines; the avatar sits in the gutter level with the first bubble. align="end" is the reader's own run, at the end of the log, mirrored with the writing direction.
A conversation log on @shadcn/react's MessageScroller, as the reference: stays on the newest message, holds the reader's place when scrolled up, keeps position when older messages are prepended; role=log inside a focusable region. Keyline adds: the place also holds when content above changes size (in every engine), arrivals unfold from their top keyline while the reader follows, and a Latest cell that counts what arrived below and jumps a bounded, interruptible distance. The log scrolls inside Keyline's Scroll Area, so its bar is the shared one; the jump reveals it, and pressing it is the reader taking over.
An example of Message scroller: driver chat.