# Fr8Labs Design System Official FDS 0.4.2 documentation and code examples for AI clients. ## Getting started - [FDS 0.4.2](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/getting-started.md): Installation and required agent workflow. ## Client rules - [Codex AGENTS.md](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/client-rules/AGENTS.md) - [Claude CLAUDE.md](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/client-rules/CLAUDE.md) - [Cursor rule](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/client-rules/fds.mdc) - [VS Code instruction](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/client-rules/fds.instructions.md) ## Workflow templates - [List and review](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/templates/list-and-review.md): Approved fake-data workflow for finding records, reviewing status, and opening work that needs attention. - [Create and edit](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/templates/create-and-edit.md): Approved create/edit template composed from public FDS form controls. It groups required job data before optional services and keeps one primary submission action. - [Record detail and review](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/templates/record-detail-and-review.md): Approved record-detail/review template composed from public FDS components and fake shipment data. It keeps summary, supporting details, evidence, and the bounded review action in one reading order. ## Components - [Button](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/button.md): FDS action control with primary, secondary, tertiary, and danger tones. - [ActionGroup](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/action-group.md): ActionGroup arranges related, independent actions with consistent spacing, wrapping, and alignment. It does not join buttons, manage selection, or add keyboard behavior. - [IconButton](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/icon-button.md): IconButton is a compact action for a familiar icon whose meaning remains clear without visible text. Use the same tone and size hierarchy as Button, and always provide an accessible name. - [Checkbox](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/checkbox.md): Checkbox represents a selection that is submitted or saved with a form. Use Switch instead when changing a setting takes effect immediately; validation belongs to the surrounding checkbox group. - [CheckboxGroup](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/checkbox-group.md): CheckboxGroup owns the shared label, validation, and availability state for multiple related selections. Use Checkbox alone for one independent boolean choice. isRequired shows the required indicator; because native HTML cannot enforce “at least one checkbox in this set,” the owning form validates the values and passes error. - [DateTimePicker](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/date-time-picker.md): DateTimePicker supports single or range selection and date-only or date-time values through the range and showTime options. Every configuration keeps the same direct-entry field, calendar interaction, validation, and responsive width. - [Radio](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/radio.md): Radio is one option item for custom native composition. It must share a name with related radio items; use RadioGroup for the standard labeled and validated set. - [RadioGroup](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/radio-group.md): RadioGroup owns the shared label, selection, validation, and availability state for a short list where exactly one option can be selected. Use Select for longer lists or constrained space. - [Select](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/select.md): Select one value from a predefined list. This component stays native so keyboard and popup behavior follow the user’s browser and operating system; searchable selection requires a separately owned combobox. - [Switch](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/switch.md): Switch changes a boolean setting immediately. Use Checkbox when the choice is submitted or saved with the rest of a form. - [Textarea](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/textarea.md): Textarea captures longer free-form input. Keep a visible label, use description for persistent guidance, and pass error when the owning form rejects the value. - [TextInput](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/text-input.md): Approved TextInput component documented in Storybook. - [EmptyState](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/empty-state.md): EmptyState explains why content is missing and offers one direct next step when recovery is available. Its title is a level-2 heading by default; set headingLevel to match the surrounding section. Icons are decorative. Keep loading, errors, and permission failures in their own states. - [InlineAlert](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/inline-alert.md): InlineAlert provides contextual information beside the visible workflow it affects. The title is optional. It supports a status icon, supporting message, list, non-primary direct action, three sizes, and dismissible or persistent behavior. Use a notification for completed background work, a banner for system-wide issues, and field help for one input. Errors announce assertively; info, success, and warning updates announce politely. - [StatusBadge](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/status-badge.md): StatusBadge presents short, read-only workflow metadata. The status selects the FDS tone; label supplies the exact product-facing wording and casing. Do not use it as a live announcement or as the only explanation of a blocked action. - [Avatar](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/avatar.md): Avatar identifies one person with a circular image or initials. `name` supplies the accessible name; the nested image is decorative. Use small in dense rows and medium elsewhere. Empty names and failed images fall back safely. Organization shapes, stacks, presence, and upload behavior are outside this component. - [DataTable](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/data-table.md): DataTable presents short, read-only lists and summaries with native table semantics. Use the labeled scroll region for constrained widths; sorting, editing, selection, and large operational datasets belong to FDSDataGrid. - [FDSDataGrid](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/fds-data-grid.md): Read-only FDS integration for AG Grid Enterprise 32.3.3. Use it for complex operational shipment lists: collapsible job hierarchies, a pinned right action column that remains available during horizontal review, sorting, quick and column filters, resize/reorder, column management, optional selection, row numbers and drag handles, grouping and aggregation, nested master/detail rows, range selection, status totals, pagination, CSV or Excel export through the grid API, and explicit loading or empty states. Long labels and values expose native grid tooltips. Use FDSEditableDataGrid for inline changes. License setup, saved-view persistence, charts, and server-side data remain application decisions. - [FDSEditableDataGrid](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/fds-editable-data-grid.md): Permissioned inline-editing grid for short, low-risk operational values. It adds explicit editable columns, text/number/date editors, undo/redo, range fill, and a required state callback to the read-only FDSDataGrid contract. Use FDSDataGrid when users only review, filter, select, or export data. - [InlineInput](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/inline-input.md): InlineInput edits one dense value inside a table cell. Its label is an accessible name rather than visible field chrome; use TextInput for ordinary forms. It does not add editing behavior to DataTable or FDSDataGrid. - [Metric](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/metric.md): Metric presents one labelled value with optional context and change using native description-list semantics. Use compact in dense summaries. Loading is visible and marks the metric busy; unavailable is an explicit terminal state. Change direction describes movement, while favorable or unfavorable tone describes business meaning. Include that meaning in the visible change text instead of relying on color. Pages that need an async completion announcement should own one aggregate status rather than making every metric live. - [Pagination](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/pagination.md): Pagination moves through a known number of result pages. Give each instance a specific label; the current page is announced after Previous or Next changes it. - [Tabs](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/tabs.md): Approved Tabs switch between related in-page panels. This initial horizontal slice uses immediate automatic activation, native buttons, and one roving tab stop. - [FilterBar](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/filter-bar.md): FilterBar groups controls that narrow a result set. It is a native labeled form, wraps fields and actions on narrow widths, and leaves filter state and result updates to the owning workflow. - [PageHeader](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/page-header.md): PageHeader establishes the page title and optional context before page content. Keep one h1 per page, provide breadcrumbs as navigation, and place related actions in ActionGroup. - [Panel](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/panel.md): Approved Panel component documented in Storybook. - [Dialog](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/dialog.md): Approved Dialog component documented in Storybook. - [Drawer](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/drawer.md): Approved Drawer component documented in Storybook. - [Popover](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/popover.md): Popover opens a non-modal interactive panel anchored to a button. It has a visible title, light-dismiss, Escape dismissal, and focus restoration. Use a menu pattern for a list of actions. - [Tooltip](https://fr8labs-fds-storybook.vercel.app/fds/0.4.2/components/tooltip.md): Tooltip provides brief, non-interactive supporting text for a focusable trigger. It opens on hover or focus and closes on pointer exit, blur, or Escape.