Let your agent read the manual.
An agentic React component library built for both AI coding agents and developers alike.
pnpm add @dbm-system/components @dbm-system/tokens @dbm-system/iconsWhat your agent reads
DBM System ships its manual as typed JSON. Before writing a line, an agent reads every component, prop and token: its type, its allowed values and its default. It builds from facts, not guesses.
@dbm-system/components/ manifest/ index.json - Every component with its tier, category and a sentence. Read this first.
@dbm-system/components/ manifest/ components/ <Name>.json - One component in full: its props, parts, the native props it takes and its examples.
@dbm-system/components/ AGENTS.md - The rules that hold across components, and every public name.
@dbm-system/tokens/ tokens.json - Every design token, its value in each theme, and which components use it.
@dbm-system/mcp - Ask instead of read. A read-only server that answers an agent's questions about components, props and tokens.
llms.txt- A short index of the documentation, each page linked to a Markdown copy, for tools that read that convention.
Specification
What it is
- Exports
- 120 components and 18 hooks/functions
- Themes
- Purple and Emerald, each in light and dark
- Version
- 0.3.2
What it needs
- React
- 18 and later, safe to render on the server
- Runtime dependencies
- Radix UI Primitives and Phosphor Icons
- Licence
- MIT
How it is built
- Accessibility
- WCAG 2.2 AA is the goal, checked on every change.
- For agents
- A typed component manifest, a token index and AGENTS.md ship in the packages, and an MCP server answers questions from them
All components
This list is read from the same manifest an agent reads. Each name opens its Docs page in Storybook.
Skip the component list| Description | |||
|---|---|---|---|
| Accordion | Molecule | Overlay | Vertically stacked sections that each expand to show their content. |
| Affix | Atom | Layout | Keeps an element sticky while its container scrolls. |
| Alert | Molecule | Feedback | An inline message about a state, with a tone, an optional action and a dismiss button. |
| AlertDialog | Organism | Overlay | A modal that interrupts to ask for a decision, and is not dismissed by accident. |
| AppShell | Template | Shells | The page frame of an app: sidebar, header, main area, aside and footer, wired up. |
| AspectRatio | Atom | Layout | Locks its content to a fixed width-to-height ratio. |
| Avatar | Atom | Data Display | A person or entity as an image, falling back to initials or an icon. |
| AvatarGroup | Molecule | Data Display | A row of overlapping avatars with a +N count for the rest. |
| Backdrop | Atom | Overlay | A full-viewport dimming layer behind modal overlays. |
| BackToTop | Atom | Navigation | A floating button that scrolls back to the top once the page has been scrolled. |
| Badge | Atom | Data Display | A small label or count showing a status. |
| Bleed | Atom | Layout | Breaks its content out of a parent's padding. |
| Blockquote | Atom | Typography | A quoted passage with an optional attribution. |
| Box | Atom | Layout | The base layout primitive most other components are built on. |
| Breadcrumb | Molecule | Navigation | A trail of links showing where the current page sits in a hierarchy. |
| Button | Atom | Inputs | The primary control for an action, in several variants and sizes. |
| ButtonGroup | Molecule | Inputs | Related buttons laid out as one, fused together or spaced apart. |
| Calendar | Molecule | Inputs | A month grid for choosing a date or a range of dates. |
| Card | Molecule | Data Display | A bordered container that groups related content and actions. |
| Carousel | Organism | Media | A set of slides to move between, with controls and swiping. |
| Center | Atom | Layout | Centers its content on both axes. |
| Checkbox | Atom | Inputs | A box for a yes-or-no choice, with an indeterminate state. |
| CheckboxGroup | Molecule | Inputs | Several checkboxes that share one list of chosen values. |
| ClientOnly | Atom | Utility | Renders its content only in the browser, never on the server. |
| CloseButton | Atom | Inputs | A small icon-only button for dismissing something. |
| Code | Atom | Typography | A short inline snippet of code within a line of text. |
| CodeBlock | Molecule | Typography | A block of source code with syntax highlighting, line numbers and a copy button. |
| Collapse | Atom | Overlay | A region that animates open and closed. |
| ColorPicker | Organism | Inputs | A field for choosing a colour from a panel or by typing it. |
| Combobox | Organism | Inputs | A text field with a list of options to narrow down and choose from. |
| CommandPalette | Organism | Navigation | A ⌘K-style launcher: search a list of commands and run one. |
| ConfirmDialog | Organism | Overlay | A ready-made confirmation: the question, what it will do, and two answers. |
| Container | Atom | Layout | Centers content and limits it to a maximum width. |
| ContextMenu | Organism | Overlay | A menu that opens where a person right-clicks or long-presses. |
| DataTable | Organism | Data Display | A table of data with sorting, selection, paging and a toolbar. |
| DatePicker | Organism | Inputs | A date field you type into, with a calendar to pick from. |
| DateRangePicker | Organism | Inputs | Two date fields and a calendar for choosing a start and an end date. |
| DescriptionList | Molecule | Data Display | Terms and their values, laid out as a list of labelled details. |
| Dialog | Organism | Overlay | A modal window over the page for focused content or a form. |
| DirectionProvider | Atom | Utility | Says once which way the app reads, so direction-aware components need no dir of their own. |
| Divider | Atom | Layout | A horizontal or vertical line that separates content, with an optional label. |
| Drawer | Organism | Overlay | A panel that slides in from an edge of the screen. |
| EditableText | Molecule | Inputs | Text that turns into a field when you activate it. |
| EditorTabs | Organism | Navigation | A strip of tabs a person opens, closes and rearranges, like open files. |
| EmptyState | Molecule | Data Display | A message for a place with nothing to show yet, with an optional action. |
| FieldError | Atom | Inputs | The error message for a form field, announced when it appears. |
| FieldGroup | Molecule | Inputs | Lays out several form fields in rows and columns. |
| FieldHelperText | Atom | Inputs | A hint under a form field, such as a format or a limit. |
| FieldLabel | Atom | Inputs | The label for a form field, with an optional required marker. |
| FileUpload | Organism | Inputs | A drop zone and a list for choosing and uploading files. |
| FocusTrap | Atom | Utility | Keeps keyboard focus inside a region. |
| Form | Organism | Inputs | Collects and validates a set of fields and handles submitting them. |
| FormField | Molecule | Inputs | A label, a control and its hint or error, wired together. |
| Grid | Molecule | Layout | A CSS grid layout with a gap and responsive columns. |
| GridItem | Atom | Layout | A cell of a grid, with how many columns it spans and where it starts. |
| Heading | Atom | Typography | A section heading, from level 1 to 6. |
| Highlight | Atom | Typography | Marks matching text, such as a search term. |
| HoverCard | Molecule | Overlay | A card of extra detail that appears when hovering a trigger. |
| Icon | Atom | Media | A Phosphor icon at a set size, weight and tone. |
| IconButton | Atom | Inputs | A button that shows only an icon. |
| Image | Atom | Media | An image that loads lazily and shows a fallback if it fails. |
| ImageViewer | Organism | Media | A full-screen viewer for one image or a gallery, with zoom. |
| Indicators | Atom | Media | A row of dots showing and choosing a position in a sequence. |
| Input | Atom | Inputs | A single-line text field with optional icons, a clear button and an error state. |
| Kbd | Atom | Typography | A keyboard key or shortcut, drawn like a keycap. |
| Link | Atom | Typography | A styled link, with markers for external links. |
| List | Molecule | Typography | An ordered or unordered list with even spacing. |
| ListItem | Atom | Typography | One item of a list. |
| Menu | Organism | Navigation | A dropdown menu of actions, with checkboxes, radios and submenus. |
| Menubar | Organism | Navigation | A bar of menus, like the top of a desktop application. |
| MultiSelect | Organism | Inputs | A field for choosing several options, shown as removable chips. |
| Navbar | Organism | Navigation | The bar across the top of a page for the brand, links and actions. |
| NavigationMenu | Organism | Navigation | A bar of links whose items open panels, for large sites. |
| NumberInput | Molecule | Inputs | A number field with buttons to step it up and down. |
| PageHeader | Molecule | Layout | The head of a page: breadcrumbs, a title, a description, facts and actions. |
| PageShell | Template | Shells | The page frame of an app with no sidebar: a header, main area, optional aside and footer. |
| Pagination | Molecule | Data Display | Controls for moving between the pages of a list or table. |
| PasswordInput | Molecule | Inputs | A password field with a button to show or hide it. |
| PinInput | Molecule | Inputs | A code field with one cell per character, for one-time codes. |
| Popover | Molecule | Overlay | A floating panel of content that opens from a trigger. |
| Portal | Atom | Utility | Renders its content in another part of the page. |
| ProgressBar | Atom | Feedback | A horizontal bar showing how far a task has got. |
| ProgressCircle | Atom | Feedback | A ring showing how far a task has got. |
| Radio | Atom | Inputs | One option of a set where only one can be chosen. |
| RadioGroup | Molecule | Inputs | A set of radios that share one chosen value. |
| RangeSlider | Molecule | Inputs | A slider with two handles for choosing a range. |
| RatingInput | Molecule | Inputs | A row of icons, such as stars, for choosing a rating. |
| ScrollArea | Molecule | Layout | A scrollable region with styled scrollbars. |
| SearchInput | Molecule | Inputs | A search field with a clear button and a debounced search callback. |
| Select | Molecule | Inputs | A dropdown for choosing one option from a list. |
| Sidebar | Organism | Navigation | A side panel of navigation that collapses to icons and becomes a drawer on a phone. |
| Skeleton | Atom | Data Display | A placeholder shape shown while content loads. |
| SkipLink | Atom | Utility | A link, hidden until it takes keyboard focus, that jumps past the header to the main content. |
| Slider | Molecule | Inputs | A slider for choosing a single value. |
| Spacer | Atom | Layout | Pushes the items beside it apart in a flex row or column. |
| Spinner | Atom | Feedback | A rotating ring that shows something is loading. |
| Splitter | Molecule | Layout | Resizable panes divided by a draggable handle. |
| Stack | Atom | Layout | Stacks children in a row or column with an even gap. |
| Stat | Molecule | Data Display | A key figure with a label and an optional trend. |
| Stepper | Organism | Navigation | Shows the steps of a process and which one the person is on. |
| Switch | Atom | Inputs | An on-or-off toggle. |
| Table | Molecule | Data Display | A styled table for rows and columns of data. |
| TableOfContents | Molecule | Navigation | An outline of a page's sections, marking the one being read. |
| TableToolbar | Molecule | Data Display | The bar above a table for search, filters, a summary and bulk actions. |
| Tabs | Molecule | Navigation | Switches between panels of content that share one space. |
| Tag | Atom | Data Display | A small labelled pill for categories or applied filters, with an optional remove button. |
| TagsInput | Molecule | Inputs | A field that holds a list of short values as removable chips. |
| Text | Atom | Typography | The base for body text, with size, weight and colour. |
| Textarea | Atom | Inputs | A multi-line text field. |
| ThemeProvider | Atom | Utility | Applies a brand and a light or dark mode to the page. |
| Timeline | Organism | Data Display | Events in order on a line, with times and descriptions. |
| TimePicker | Molecule | Inputs | A time field you type into, with wheels to pick from. |
| TimeRangePicker | Molecule | Inputs | Two time fields for choosing a start and an end time. |
| Toast | Organism | Feedback | A short message that appears briefly and goes away by itself. |
| ToggleGroup | Molecule | Inputs | A set of buttons that switch on or off, as one or many choices. |
| Toolbar | Molecule | Inputs | A row of controls that share one tab stop and move with arrow keys. |
| Tooltip | Atom | Overlay | A short hint shown when hovering or focusing an element. |
| Tour | Organism | Overlay | A guided tour that highlights parts of a page one step at a time. |
| Tree | Organism | Data Display | An expandable hierarchy of rows, like a file tree. |
| VisuallyHidden | Atom | Utility | Hides content from the eye but not from screen readers. |
Change the theme, not the components
Every component reads the same semantic tokens. Load another theme file and the whole interface follows: 2 brands, each in light and dark, and not one component changed.
| Theme | bg.brand | bg.surface |
|---|---|---|
| Purple, light | #5548a4 | #ffffff |
| Purple, dark | #b9b7ef | #2c2a34 |
| Emerald, light | #1a6e63 | #ffffff |
| Emerald, dark | #a5d2c9 | #2c2a34 |
| Purple, dark | #b9b7ef | #2c2a34 |
| Purple, light | #5548a4 | #ffffff |
| Emerald, dark | #a5d2c9 | #2c2a34 |
| Emerald, light | #1a6e63 | #ffffff |
Start in three steps
Install the packages, import the stylesheet and one theme, then render a component.
Install
pnpm add @dbm-system/components @dbm-system/tokens @dbm-system/iconsImport the stylesheet and a theme
import "@dbm-system/components/styles.css";import "@dbm-system/tokens/css/purple-light.bundled.css";Then choose the theme on the root element:
<html data-theme="purple-light">Render a component
import { Button } from "@dbm-system/components";export function Example() { return <Button>Save</Button>;}
The packages ship no fonts. Installation shows how to load Nunito and Lora.