Elements & UI
Ready-to-use UI components with JavaScript interactivity. From utility components like notifications and timers to structural elements like modals and carousels.

CSS Customisation Cheat-Sheet

Override Domma's CSS variables to match your existing project's design system. Learn which variables control colours, typography, spacing, and component styles — no need to rewrite CSS.

View Cheat-Sheet →

UI Components

Utility components for user interaction, feedback, and compliance

Cookie Consent

GDPR-compliant cookie consent management.

  • Fully configurable
  • GDPR compliant
  • Category management
  • localStorage persistence

Back to Top

Scroll-to-top button that appears after scrolling.

  • Auto show/hide
  • Smooth scroll
  • Customisable position
  • Event callbacks

DesktopNotification

Browser native desktop notifications with permission handling.

  • Desktop push alerts
  • Permission management
  • Event callbacks
  • Instance tracking

Toast

Non-blocking notification messages with auto-dismiss.

  • Success/error/info
  • Auto-dismiss timer
  • Position control
  • Action buttons

Loader

Loading indicators with multiple animation types.

  • 4 animation types
  • Overlay mode
  • Size customisation
  • Loading text

Timer

Countdown timer with visual display or headless mode.

  • Visual or headless
  • Multiple formats
  • Time manipulation
  • Notification alerts

Alarm

Scheduled time-based alerts with localStorage persistence.

  • Persistent alarms
  • Repeat patterns
  • Snooze support
  • Auto-notification

Elements

Structural components for building interfaces

Accordion

Collapsible content sections with smooth animations.

  • Single or multi-expand
  • Smooth animations
  • Nested support
  • Keyboard accessible

Badge

Small status indicators and labels.

  • Multiple variants
  • Pill & rounded styles
  • Dismissible badges
  • Counter badges

Number Badge

Positioned notification counters and presence dots.

  • CSS-only or JS API
  • Auto-hide at zero
  • Dot mode for presence
  • Pulse animation

List Group

Selectable lists with keyboard navigation and colour variants.

  • Single & multi-select
  • Keyboard navigation
  • Colour variants
  • Flush & numbered modes

Signature

Canvas-based handwriting pad for capturing signatures in forms.

  • Mouse, touch & stylus
  • Undo / redo history
  • PNG & SVG export
  • Type-your-name fallback

Breadcrumbs

Navigation trail showing user location.

  • Dynamic updates
  • Custom separators
  • Home icon support
  • Responsive collapsing

Button Group

Radio and checkbox button groups.

  • Single or multi-select
  • Vertical layout
  • Value binding
  • Programmatic control

Card

Container components with hover effects and clickability.

  • Hover effects
  • Click handling
  • Header & footer
  • Image support

Carousel

Image and content sliders with controls.

  • Auto-play
  • Touch support
  • Multiple transitions
  • Indicators & arrows

Dialog

Promise-based modal dialogs (alert, confirm, prompt).

  • Promise-based API
  • Alert, confirm, prompt
  • Custom styling
  • Keyboard support

Dropdown

Contextual overlay menus with smart positioning.

  • Click or hover trigger
  • Auto-positioning
  • Nested support
  • Close on outside click

Forms

Enhanced form controls with validation.

  • Input validation
  • Custom controls
  • Error handling
  • Submit management

hero

Hero sections with flexible layouts (CSS-only).

  • Multiple layouts
  • Split layouts
  • Gradient overlays
  • Responsive sizing

Modal

Dialog overlays with backdrop and animations.

  • Backdrop control
  • Keyboard shortcuts
  • Nested support
  • Size variants

Navbar

Responsive navigation bar with mobile menu.

  • Mobile responsive
  • Dropdown support
  • Brand/logo area
  • Fixed/sticky modes

Sidebar

Navigation sidebar with unlimited depth nesting.

  • Unlimited depth menus
  • Mobile drawer
  • State persistence
  • Light/dark themes

Footer

Page footer with three layout modes and theme variants.

  • Simple/columns/minimal
  • Theme variants
  • Social media icons
  • Brand integration

Autocomplete

Text input with intelligent suggestion dropdown.

  • Static & async data
  • Match highlighting
  • Keyboard navigation
  • Model binding

Pillbox

Multi-select tag input with removable pills.

  • Tag creation
  • Searchable dropdown
  • Validation rules
  • Model binding

TreeView

Hierarchical tree structure with expand/collapse.

  • Nested nodes
  • Checkboxes
  • Lazy loading
  • Keyboard navigation

Editor

Rich text editor with formatting tools.

  • Formatting toolbar
  • HTML/Preview modes
  • Image support
  • Markdown export

Tabs

Tabbed content panels with animations.

  • Animated transitions
  • Vertical layout
  • Dynamic tabs
  • Keyboard navigation

Timeline

Chronological event display with multiple layouts.

  • Vertical & horizontal
  • Centered layout
  • Custom styling
  • Event markers

Tooltip

Contextual popups on hover or click.

  • Multiple triggers
  • Smart positioning
  • HTML content
  • Custom styling