Docs

Main site

Installation Browser support Extend config MCP server
Validation Page speed testing Responsive design
Accordion Aspect Ratio Avatar Badge Banner Bento Grid Blockquote Breadcrumbs Button Callout Card Drawer Dropdown Link Modal Navbar Navblock Pagination Popover Progress Separator Tabs Timeline Toast Tooltip
Checkbox Datepicker File upload Form field Input Label OTP Radio Range Select Textarea Toggle
Header Footer
Accordion Auth Checkbox & Radio Content Drawers Features Modals Statistics & Metrics Teams Dropdowns
Address Contact number Currency symbol Date Emirates ID Name
Close
Home Documentation Components

Components

A full set of highly customizable components for building websites and interfaces. All components are built with ready styles and tested for WCAG 2.2 guidelines.

Common elements

Foundational, framework-agnostic building blocks used across every interface. You have the creative freedom to use these in websites, applications or mobile interfaces.

Accordion

An Accordion helps effectively manage and organize content in an interactive, user-friendly manner. It enables content to be collapsed into separate sections that can be expanded upon user interaction — especially useful in environments with limited screen space.

Content Interactive

Aspect Ratio

An Aspect Ratio component enforces a specific width-to-height ratio on its slotted content. Use it to wrap images, videos, and iframes that should hold a consistent shape regardless of viewport size — preventing layout shift as media loads. It is a layout primitive with no visual styling of its own.

Layout

Avatar

A user-avatar component that renders an image when one is available and falls back to slotted content (such as initials) or a default user silhouette when it is not. Supports seven sizes, square or rounded shapes, and an optional status indicator.

Media

Badge

Badges let users label, classify, or count items at a glance. A Badge is a small inline element used to communicate status, mark counts, or tag content with metadata. The badge component renders a real native "span" internally and exposes a rich set of properties.

Status Display

Banner

A Banner is a page-level notification pinned to the top or bottom of the viewport. Use it for messages that apply to the whole site or service — scheduled maintenance, regional alerts, cookie consent, ministry-wide announcements, or critical system errors that must remain visible while users scroll.

Feedback Interactive

Bento Grid

A Bento Grid arranges aegov-card elements into a balanced-but-non-uniform "bento box" layout. It owns the column count, the gap between tiles, and the responsive stacking behaviour, while each card declares its own column and row span via simple data attributes.

Layout

Blockquote

A Blockquote presents quoted text with an optional citation and author attribution. It renders a native "<blockquote>" element in a primary appearance (with a decorative quotation mark) or a colored appearance (a tinted panel instead of the icon).

Content Display

Breadcrumbs

Breadcrumbs are a hierarchical navigation aid that shows the user's current location within a site and offers a quick way back to any ancestor page — especially useful in deep service journeys where the user needs to understand context without losing their place.

Navigation Interactive

Button

Buttons let users make choices and take action. A Button is the primary call-to-action element of any UAE Design System. The button component renders a real native "button" internally and exposes a rich set of properties.

Action Interactive

Callout

A Callout is a highlighted message block used to draw attention to important inline information — system notices, validation summaries, contextual help, success confirmations, and warnings about consequential actions. Each callout pairs a leading icon with a content area and optional actions, so users immediately understand both the severity and the next step.

Feedback Interactive

Card

A Card is a flexible bordered surface for grouping related content — service tiles, summary panels, dashboard sections, profile snippets, and list items. It supports three border treatments across four colour variants, three sizes, optional hover effects, and any Tailwind background utility. Content is fully slotted, so any combination of headings, body copy, badges, or actions can be composed inside.

Layout Media

Drawer

A Drawer is a panel that slides in from an edge of the viewport to surface secondary content — filters, navigation, settings, or a detail view — without leaving the current page. "aegov-drawer" traps focus, locks body scroll, and returns focus to whatever opened it once closed.

Overlay

Dropdown

A Dropdown reveals a menu of actions, navigation links, or grouped commands anchored to a trigger element. "aegov-dropdown" pairs a trigger (the default slot) with a "dropdown-content" slot, rendering the menu into a portal at the document body so it can escape ancestor clipping and stacking contexts.

Overlay Navigation Interactive

Link

A Link is a real native anchor for navigation and in-content references, with an opt-in button-shaped appearance for calls-to-action that still need to behave like a link. "aegov-link" defaults to a plain styled inline link, and switches to the same visual system as "aegov-button" the moment you set "variant", "appearance", "size", "is-icon", "is-full", or "is-disabled" — while keeping every native anchor behaviour (middle-click, right-click, copy-link, crawlability) that a real "button" can never offer.

Navigation

Modal

A Modal is a dialog window that overlays the page to focus attention on a single, important task — confirming a destructive action, completing a short form, or surfacing a critical message. "aegov-modal" traps focus inside the dialog, locks the page behind it, and stacks above the rest of the page — moving out of an ancestor only while open, and only if that ancestor would trap it.

Overlay Container

Navbar

The Navbar is the horizontal primary navigation that sits under the header on a UAE Government page. It composes one or more "aegov-navbar-item" children — plain links, links with a leading icon, or links paired with an "aegov-dropdown" sub-menu — and owns keyboard navigation between them. A single resolved "size" token cascades from the navbar to every child so the whole bar scales together across breakpoints.

Navigation

Navblock

The Navblock is the vertical, sidebar-style navigation companion to "aegov-navbar". It composes one or more "aegov-navblock-item" children that can each be a plain link, a link with a leading icon, or a parent group containing nested sub-items that expand and collapse like an accordion — the pattern most application sidebars use to organise sections by topic.

Navigation

Pagination

Pagination breaks long lists — search results, service tickets, news archives, document libraries — into navigable pages. It gives users a clear sense of how much content is available, where they are in the set, and a quick way to jump backward or forward. The component is fully controlled — you decide which page is current and update it on every change event.

Navigation

Popover

A Popover is a small floating panel anchored to a trigger element with a directional arrow. Use it for short, contextual content — definitions, helper text, mini-forms, or quick actions — that benefits from a clear visual connection back to the control that opened it. For short hover-only labels, use a Tooltip; for blocking dialogs, use a Modal.

Overlay

Progress

A progress bar communicates the completion state of a task — uploading documents, processing a payment, completing a multi-step form. The "aegov-progress" component supports a determinate value, an indeterminate (loading) state, an optional numeric counter, and a description line. It always renders a hidden native "progress" element so assistive technology announces progress correctly.

Status

Separator

A Separator is a thin visual divider used to break up sections of content, group related items, or signal a contextual boundary in an interface. "aegov-separator" renders a real native "hr" when used without a label, or a flex layout of line/text/line when a label is supplied, and supports horizontal or vertical orientation, two line treatments, and four colour variants.

decorative

Tabs

Tabs let a user switch between related views inside a single surface — service details, account sections, dashboard breakdowns — without leaving the page. "aegov-tabs" owns the active-tab state and pairs each "aegov-tab" trigger with its "aegov-tab-panel" via a matching "tab-id", implementing the full WAI-ARIA tabs keyboard pattern with a roving tabindex.

Interactive

Timeline

A Timeline is a visual stepper that shows progress through a sequence of stages — application steps, document review status, multi-step forms — and clarifies what is complete, what is in progress, and what is still ahead. The "aegov-timeline" parent renders the surrounding region landmark and writes shared layout props onto each "aegov-timeline-step" child, so your markup only needs per-step status and label content.

Feedback Content

Toast

A Toast is a transient, non-blocking notification anchored to a corner of the viewport. Use it for asynchronous status updates such as "Application submitted", save confirmations, connection warnings, and undo affordances. For confirmations the user must acknowledge, use the modal component instead, and for inline page-level messages use the callout.

Feedback

Tooltip

A Tooltip is a small, non-interactive label that appears next to a control on hover or focus to clarify its purpose. Use it for icon-button labels, abbreviations, and short hints — anything the user can take or leave. For interactive content or longer descriptions, use a Popover instead.

Overlay
Essential

Form elements

Forms are an essential element to collect and store data. Every element used to interact with a user input is part of the form elements.

Checkbox

A Checkbox lets a user toggle a single binary choice, or select any number of options from a related set. "aegov-checkbox" handles the individual control — label, hint, states, sizes, and colour variants — while "aegov-checkbox-group" wraps a set of checkboxes in a native "fieldset", adding shared orientation, appearance, a select-all controller with automatic indeterminate cascading, and group-level validation.

input Interactive

Datepicker

A Datepicker lets a user pick a single date, or a start and end date for a range, from a calendar dialog instead of typing free text. "aegov-datepicker" renders a read-only trigger input and opens its calendar in a portal attached to the end of the page, so the calendar is never clipped by a card, modal, or any other "overflow: hidden" ancestor. Single-date and date-range selection share one component, with full keyboard navigation, presets, blackout dates, range limits, and an optional Apply / Cancel confirmation flow.

input Interactive

File upload

A File upload lets a user attach one or more documents or images from their device — an Emirates ID scan, a passport photo, or supporting evidence for a service application. "aegov-fileupload" wraps a real native file input in three layouts (a styled input with a browse button, a stand-alone trigger button, or a drag-and-drop dropzone), adding client-side validation for file type, size, and count.

input Interactive

Form field

A Form field is a lightweight wrapper that pairs a label with a form control — an input, textarea, select, checkbox, range, progress bar, or one-time-password field — and links them automatically. "aegov-form-field" sets the label's "for" to the control's auto-generated id on mount and on every update, so there is no id to manage by hand. The wrapper itself adds no visual styling beyond a single layout block; surround it with your own form grid or stack rules.

input Layout

Input

An Input is the primary single-line control for collecting short text values. "aegov-input" wraps a real native input so every browser feature, autofill behaviour, and assistive-technology hook keeps working, while "aegov-input-group" adds a static prefix or suffix addon (a currency symbol, a fixed domain, a search button) and propagates its size to the inputs and buttons inside it.

Forms

Label

A Label names a form control, giving it both an accessible name for assistive technology and a click target that focuses the field for sighted users. "aegov-label" renders a real native label element and, when placed inside "aegov-form-field", has its "for" attribute wired to the paired control automatically.

label form accessibility

OTP

An OTP (one-time passcode) input is a row of focused cells used to enter a short verification code received by SMS, email, or an authenticator app. It auto-advances focus as the user types, supports paste-to-fill, and can validate against an alphanumeric or pattern rule. Use it for multi-factor authentication, transaction confirmation, and identity verification flows.

Forms

Radio

A Radio lets a user pick exactly one option from a small, fixed set — title, gender, payment method, preferred language. "aegov-radio" handles the individual control — label, hint, states, sizes, and colour variants — while "aegov-radio-group" wraps a set of radios in a native "fieldset", sharing the "name" attribute, propagating sizing, and emitting a single event with the currently selected value.

Interactive Forms

Range

A Range is a slider for choosing a numeric value, or a numeric span between a minimum and a maximum, where the magnitude matters more than the exact figure — residency duration, age filters, fee brackets, search radius. "aegov-range" is built on one or two real native range inputs for full keyboard and form support, with a richer custom track-and-thumb layer drawn on top for consistent, cross-browser styling.

Interactive

Select

A Select lets a user choose one or more options from a list. "aegov-select" supports two render modes: a real native "select" for simple lists and the best mobile experience, and a custom listbox for richer needs like search, multi-select, grouped options, and a clear button. Options are declared as light-DOM children using "aegov-select-option", optionally wrapped in "aegov-select-option-group".

input Interactive

Textarea

A Textarea collects multi-line text — feedback, addresses, complaint descriptions, justifications, or any free-form content that will not fit on a single line. "aegov-textarea" wraps a real native "textarea" so spell-check, autofill, and assistive technology all keep working, while layering on design-system sizing, resize control, a character counter, and copy-to-clipboard for read-only content.

input Interactive

Toggle

A Toggle is a switch input that lets users turn a single setting on or off. It is the right choice for binary preferences that take effect immediately — notification channels, language preference, accessibility options — and provides clear visual and assistive-technology feedback for the current state.

input Interactive
Mandatory

Website elements

Mandatory elements that must be used on public facing websites. These elements cannot be changed or ignored.

Footer

A Footer is the standardised bottom-of-page region for UAE Federal Government websites — a highlights row, a brand and navigation column grid, and a bottom bar for copyright and legal links, rendered as a single footer landmark region. Use exactly one per page, placed at the very end of the document.

Navigation Layout

Header

The Header is the standardised top-of-page region for UAE Federal Government websites — the official top bar, the entity's logo and primary navigation, and a menu drawer for small screens.

Navigation Layout