Skip to content

Let your agent read the manual.

An agentic React component library built for both AI coding agents and developers alike.

Bash
pnpm add @dbm-system/components @dbm-system/tokens @dbm-system/icons

What 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.

How an agent uses themThe MCP server

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
120 components
Tier:
Category:
Description
AccordionMoleculeOverlayVertically stacked sections that each expand to show their content.
AffixAtomLayoutKeeps an element sticky while its container scrolls.
AlertMoleculeFeedbackAn inline message about a state, with a tone, an optional action and a dismiss button.
AlertDialogOrganismOverlayA modal that interrupts to ask for a decision, and is not dismissed by accident.
AppShellTemplateShellsThe page frame of an app: sidebar, header, main area, aside and footer, wired up.
AspectRatioAtomLayoutLocks its content to a fixed width-to-height ratio.
AvatarAtomData DisplayA person or entity as an image, falling back to initials or an icon.
AvatarGroupMoleculeData DisplayA row of overlapping avatars with a +N count for the rest.
BackdropAtomOverlayA full-viewport dimming layer behind modal overlays.
BackToTopAtomNavigationA floating button that scrolls back to the top once the page has been scrolled.
BadgeAtomData DisplayA small label or count showing a status.
BleedAtomLayoutBreaks its content out of a parent's padding.
BlockquoteAtomTypographyA quoted passage with an optional attribution.
BoxAtomLayoutThe base layout primitive most other components are built on.
BreadcrumbMoleculeNavigationA trail of links showing where the current page sits in a hierarchy.
ButtonAtomInputsThe primary control for an action, in several variants and sizes.
ButtonGroupMoleculeInputsRelated buttons laid out as one, fused together or spaced apart.
CalendarMoleculeInputsA month grid for choosing a date or a range of dates.
CardMoleculeData DisplayA bordered container that groups related content and actions.
CarouselOrganismMediaA set of slides to move between, with controls and swiping.
CenterAtomLayoutCenters its content on both axes.
CheckboxAtomInputsA box for a yes-or-no choice, with an indeterminate state.
CheckboxGroupMoleculeInputsSeveral checkboxes that share one list of chosen values.
ClientOnlyAtomUtilityRenders its content only in the browser, never on the server.
CloseButtonAtomInputsA small icon-only button for dismissing something.
CodeAtomTypographyA short inline snippet of code within a line of text.
CodeBlockMoleculeTypographyA block of source code with syntax highlighting, line numbers and a copy button.
CollapseAtomOverlayA region that animates open and closed.
ColorPickerOrganismInputsA field for choosing a colour from a panel or by typing it.
ComboboxOrganismInputsA text field with a list of options to narrow down and choose from.
CommandPaletteOrganismNavigationA ⌘K-style launcher: search a list of commands and run one.
ConfirmDialogOrganismOverlayA ready-made confirmation: the question, what it will do, and two answers.
ContainerAtomLayoutCenters content and limits it to a maximum width.
ContextMenuOrganismOverlayA menu that opens where a person right-clicks or long-presses.
DataTableOrganismData DisplayA table of data with sorting, selection, paging and a toolbar.
DatePickerOrganismInputsA date field you type into, with a calendar to pick from.
DateRangePickerOrganismInputsTwo date fields and a calendar for choosing a start and an end date.
DescriptionListMoleculeData DisplayTerms and their values, laid out as a list of labelled details.
DialogOrganismOverlayA modal window over the page for focused content or a form.
DirectionProviderAtomUtilitySays once which way the app reads, so direction-aware components need no dir of their own.
DividerAtomLayoutA horizontal or vertical line that separates content, with an optional label.
DrawerOrganismOverlayA panel that slides in from an edge of the screen.
EditableTextMoleculeInputsText that turns into a field when you activate it.
EditorTabsOrganismNavigationA strip of tabs a person opens, closes and rearranges, like open files.
EmptyStateMoleculeData DisplayA message for a place with nothing to show yet, with an optional action.
FieldErrorAtomInputsThe error message for a form field, announced when it appears.
FieldGroupMoleculeInputsLays out several form fields in rows and columns.
FieldHelperTextAtomInputsA hint under a form field, such as a format or a limit.
FieldLabelAtomInputsThe label for a form field, with an optional required marker.
FileUploadOrganismInputsA drop zone and a list for choosing and uploading files.
FocusTrapAtomUtilityKeeps keyboard focus inside a region.
FormOrganismInputsCollects and validates a set of fields and handles submitting them.
FormFieldMoleculeInputsA label, a control and its hint or error, wired together.
GridMoleculeLayoutA CSS grid layout with a gap and responsive columns.
GridItemAtomLayoutA cell of a grid, with how many columns it spans and where it starts.
HeadingAtomTypographyA section heading, from level 1 to 6.
HighlightAtomTypographyMarks matching text, such as a search term.
HoverCardMoleculeOverlayA card of extra detail that appears when hovering a trigger.
IconAtomMediaA Phosphor icon at a set size, weight and tone.
IconButtonAtomInputsA button that shows only an icon.
ImageAtomMediaAn image that loads lazily and shows a fallback if it fails.
ImageViewerOrganismMediaA full-screen viewer for one image or a gallery, with zoom.
IndicatorsAtomMediaA row of dots showing and choosing a position in a sequence.
InputAtomInputsA single-line text field with optional icons, a clear button and an error state.
KbdAtomTypographyA keyboard key or shortcut, drawn like a keycap.
LinkAtomTypographyA styled link, with markers for external links.
ListMoleculeTypographyAn ordered or unordered list with even spacing.
ListItemAtomTypographyOne item of a list.
MenuOrganismNavigationA dropdown menu of actions, with checkboxes, radios and submenus.
MenubarOrganismNavigationA bar of menus, like the top of a desktop application.
MultiSelectOrganismInputsA field for choosing several options, shown as removable chips.
NavbarOrganismNavigationThe bar across the top of a page for the brand, links and actions.
NavigationMenuOrganismNavigationA bar of links whose items open panels, for large sites.
NumberInputMoleculeInputsA number field with buttons to step it up and down.
PageHeaderMoleculeLayoutThe head of a page: breadcrumbs, a title, a description, facts and actions.
PageShellTemplateShellsThe page frame of an app with no sidebar: a header, main area, optional aside and footer.
PaginationMoleculeData DisplayControls for moving between the pages of a list or table.
PasswordInputMoleculeInputsA password field with a button to show or hide it.
PinInputMoleculeInputsA code field with one cell per character, for one-time codes.
PopoverMoleculeOverlayA floating panel of content that opens from a trigger.
PortalAtomUtilityRenders its content in another part of the page.
ProgressBarAtomFeedbackA horizontal bar showing how far a task has got.
ProgressCircleAtomFeedbackA ring showing how far a task has got.
RadioAtomInputsOne option of a set where only one can be chosen.
RadioGroupMoleculeInputsA set of radios that share one chosen value.
RangeSliderMoleculeInputsA slider with two handles for choosing a range.
RatingInputMoleculeInputsA row of icons, such as stars, for choosing a rating.
ScrollAreaMoleculeLayoutA scrollable region with styled scrollbars.
SearchInputMoleculeInputsA search field with a clear button and a debounced search callback.
SelectMoleculeInputsA dropdown for choosing one option from a list.
SidebarOrganismNavigationA side panel of navigation that collapses to icons and becomes a drawer on a phone.
SkeletonAtomData DisplayA placeholder shape shown while content loads.
SkipLinkAtomUtilityA link, hidden until it takes keyboard focus, that jumps past the header to the main content.
SliderMoleculeInputsA slider for choosing a single value.
SpacerAtomLayoutPushes the items beside it apart in a flex row or column.
SpinnerAtomFeedbackA rotating ring that shows something is loading.
SplitterMoleculeLayoutResizable panes divided by a draggable handle.
StackAtomLayoutStacks children in a row or column with an even gap.
StatMoleculeData DisplayA key figure with a label and an optional trend.
StepperOrganismNavigationShows the steps of a process and which one the person is on.
SwitchAtomInputsAn on-or-off toggle.
TableMoleculeData DisplayA styled table for rows and columns of data.
TableOfContentsMoleculeNavigationAn outline of a page's sections, marking the one being read.
TableToolbarMoleculeData DisplayThe bar above a table for search, filters, a summary and bulk actions.
TabsMoleculeNavigationSwitches between panels of content that share one space.
TagAtomData DisplayA small labelled pill for categories or applied filters, with an optional remove button.
TagsInputMoleculeInputsA field that holds a list of short values as removable chips.
TextAtomTypographyThe base for body text, with size, weight and colour.
TextareaAtomInputsA multi-line text field.
ThemeProviderAtomUtilityApplies a brand and a light or dark mode to the page.
TimelineOrganismData DisplayEvents in order on a line, with times and descriptions.
TimePickerMoleculeInputsA time field you type into, with wheels to pick from.
TimeRangePickerMoleculeInputsTwo time fields for choosing a start and an end time.
ToastOrganismFeedbackA short message that appears briefly and goes away by itself.
ToggleGroupMoleculeInputsA set of buttons that switch on or off, as one or many choices.
ToolbarMoleculeInputsA row of controls that share one tab stop and move with arrow keys.
TooltipAtomOverlayA short hint shown when hovering or focusing an element.
TourOrganismOverlayA guided tour that highlights parts of a page one step at a time.
TreeOrganismData DisplayAn expandable hierarchy of rows, like a file tree.
VisuallyHiddenAtomUtilityHides 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.

Brand
Mode
The value of two tokens in each theme
Themebg.brandbg.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.

  1. Install

    Bash
    pnpm add @dbm-system/components @dbm-system/tokens @dbm-system/icons
  2. Import the stylesheet and a theme

    TypeScript
    import "@dbm-system/components/styles.css";import "@dbm-system/tokens/css/purple-light.bundled.css";

    Then choose the theme on the root element:

    HTML
    <html data-theme="purple-light">
  3. Render a component

    TSX
    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.