dev-dga
ComponentsComplianceAccessibilityArabic & RTLInstallationTemplates Storybook

The library

DGA React components

Every UI component in the library, live and themeable: accessible, RTL-native React 19 components implementing the Saudi SDGA Platforms Code. Search or filter by category, then open any component for interactive examples and copy-paste code.

65 components

Actions & buttons

Controls that trigger an action or a change in state.

Button

The primary interactive control - variants, sizes, loading, asChild.

5 examples
FloatingButtonNew

A standalone floating action button (FAB) for a primary page action.

4 examples
Link

A styled, accessible text link with variants and external affordances.

4 examples
Toggle

A two-state button that stays pressed - bold/underline style controls.

4 examples
ContentSwitcher

A segmented control for switching between mutually exclusive views.

4 examples

Form inputs

Fields and controls for collecting input, with built-in field a11y.

TextInput

A single-line text field with affixes, dropdowns, and validation states.

4 examples
Textarea

A multi-line text field that grows with its content.

4 examples
NumberInput

A numeric field with stepper buttons and min/max/step.

4 examples
Select

A Radix-backed listbox for choosing one option from many.

4 examples
Dropdown

A form dropdown input supporting single and multiple selection.

4 examples
Checkbox

A checkbox with indeterminate state and field wiring.

4 examples
Radio

A radio group - one choice from a small, visible set.

4 examples
Switch

An on/off toggle for a single binary setting.

4 examples
Slider

A range slider for single values or dual-thumb ranges.

4 examples
Rating

A star rating input, keyboard-operable and half-step aware.

4 examples
InputOTP

A segmented one-time-passcode input.

4 examples
TagInput

An input that collects free-form values as removable tags.

4 examples
SearchBoxNew

A search field composing TextInput, with optional voice affordance.

4 examples
FileUpload

A drag-and-drop file upload with validation and progress.

3 examples
DatePickerNew

A calendar date field supporting Gregorian and Hijri systems.

4 examples
DateRangePickerNew

A dual-calendar range picker built on the same calendar core.

3 examples
ChipNew

A compact, selectable chip - filters, choices, and removable tokens.

4 examples

Data display

Surfaces and primitives for presenting content and records.

Card

A composable content surface - image, header, body, footer, expandable.

2 examples
Tag

A small label for categorization and metadata.

4 examples
StatusTag

A semantic status pill - success, warning, error, info.

3 examples
Avatar

A user avatar with image, fallback, status dot, and groups.

4 examples
Divider

A horizontal or vertical rule, optionally with a label.

3 examples
DescriptionList

Term/description pairs for key–value detail views.

3 examples
List

Ordered and unordered lists with consistent rhythm.

4 examples
StructuredList

A lightweight tabular list for structured rows.

4 examples
Metric

A KPI tile - value, change delta, and inline trend chart.

4 examples
Quote

A pull quote / blockquote with attribution.

4 examples
Timeline

A vertical timeline of events with markers and status.

4 examples
Table

A composable data table - header, body, footer, caption.

4 examples
AspectRatio

A container that locks its children to a fixed ratio.

3 examples
DigitalStampNew

A government verification bar with official SDGA marks.

4 examples
CodeSnippetNew

A code block with tabs, line numbers, copy, and always-LTR code.

4 examples
SaudiRiyalNew

The official Riyal symbol with SDGA-compliant amount formatting - fixed symbol, RTL-aware sign, numerals.

8 examples

Data visualization

Charts built on the DGA categorical palette.

ChartsNew

Pie, line, and bar charts using the DGA categorical color scale.

3 examples

Feedback

Status, progress, and transient messaging.

InlineAlert

An inline, in-flow message with semantic variants and actions.

4 examples
NotificationNew

A prominent, dismissible notification banner.

4 examples
NotificationToast

A toast system with an imperative toast() API and viewport.

4 examples
Tooltip

A Radix tooltip with a HelpIcon convenience trigger.

4 examples
Spinner

An indeterminate loading spinner in several sizes.

3 examples
Skeleton

A shimmering placeholder for loading content.

3 examples
Progress

Linear and circular progress indicators.

4 examples
EmptyState

A zero-data state with media, message, and actions.

4 examples

Overlays

Layers that float above the page - all portal into the provider root.

Modal

A centered dialog with header icon, body, and footer actions.

1 examples
Drawer

A side sheet for secondary flows and detail panels.

3 examples
Popover

A non-modal floating panel anchored to a trigger.

3 examples
SlideoutMenuNew

A slide-in navigation panel for app-level menus.

3 examples
DropdownMenu

An action menu with items, checkboxes, radios, and submenus.

4 examples
Menubar

A desktop-style horizontal menu bar with nested menus.

3 examples
FiltrationNew

A faceted filter panel - overlay or inline, with staged apply.

2 examples
Command

A ⌘K command palette for fast, searchable actions.

3 examples

Navigation

Wayfinding, sequencing, and content disclosure.

Tabs

Switch between related panels with a roving tablist.

4 examples
Breadcrumb

A hierarchical trail with overflow collapsing.

4 examples
Pagination

Page navigation with an underline-bar current page and jump-to.

3 examples
Accordion

Vertically stacked, collapsible sections.

3 examples
ProgressIndicatorNew

A stepper showing progress through a multi-step flow.

3 examples
Collapsible

A single show/hide disclosure region.

3 examples
ScrollArea

A styled, cross-browser custom scroll container.

3 examples
CarouselNew

A swipeable slide carousel with arrows and dots.

3 examples

App shell

Structural layout for full applications.

Sidebar

A collapsible application sidebar with groups, menus, and rail.

1 examples

Provider & utilities

The runtime context, hooks, and helpers that tie it together.

DgaProvider

The root provider - theme, direction, dark mode, and the overlay portal.

3 examples
dev-dga

Saudi Arabia’s DGA Platforms Code, as accessible React 19 components.

Explore

ComponentsInstallationTheme studioBlocksExamplesTemplatesStorybook

Proof

ComplianceAccessibilityArabic & RTL

Project

GitHubMIT Licensenpm · @dev-dga/reactllms.txt for AI agents

Independent implementation, free to use under the MIT license. Not affiliated with, nor endorsed by, the official Saudi Digital Government Authority (DGA).

Built by Dhaifallah Alfarawi · @DevDhaif

MIT · built with @dev-dga