Skip to content

UI Components

UI Components are complex user interface elements of the Casoon UI Library that consist of multiple UI Elements and provide advanced functionality.

Overview

UI Components are characterized by the following properties:

  • Complexity: Composition of multiple UI Elements
  • Functionality: Provide advanced interaction possibilities
  • Reusability: Can be used in various application contexts
  • Composition: Can be combined with other components

Available Components

The Casoon UI Library offers the following UI Components:

Basic Categories

Content Components

  • Action Bar: Container for primary and secondary actions
  • Alert: Notifications and warning messages
  • Card: Container for related content
  • Dialog: Modal windows for user interactions
  • Drawer: Side panels for navigation or additional information

Form Components

Feedback Components

Tabular Components

Advanced Components

Usage

UI Components can be imported individually or as part of the entire UI system:

css
/* Entire UI system */
@import '@casoon/ui-lib/ui.css';

/* Or only individual components */
@import '@casoon/ui-lib/ui/components/card.css';
@import '@casoon/ui-lib/ui/components/dialog.css';

Customization

All UI Components can be customized using CSS variables and modifiers:

css
:root {
  /* Card customizations */
  --card-radius: 0.5rem;
  --card-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  
  /* Dialog customizations */
  --dialog-backdrop: rgba(0, 0, 0, 0.5);
  --dialog-animation-duration: 200ms;
}

Accessibility

All UI Components are designed for optimal accessibility:

  • Semantic HTML structure
  • ARIA attributes for screen readers
  • Focus management for keyboard navigation
  • Sufficient color contrasts
  • Responsive design for all screen sizes