Documentation Index
Fetch the complete documentation index at: https://docs.prism.byescaleira.com/llms.txt
Use this file to discover all available pages before exploring further.
Core Components
PrismUI provides 18+ primitive components that form the building blocks of your UI. Every component reads from the currentPrismTheme, supports accessibility, and adapts to all Apple platforms.
PrismButton
A themed button with variant styles, async actions, loading state, haptic feedback, and built-in accessibility.Button Variants
async, so the button shows a spinner while the work runs:
Async Loading State
Custom Label
PrismCard
A themed container with surface color, border, radius, and optional elevation:Card
PrismExpandableCard
A card that expands to reveal additional content with a smooth animation:Expandable Card
PrismAvatar
Circular avatar with image, initials fallback, and online indicator:Avatar
PrismChip & PrismTag
Chips are interactive (tappable, dismissible), while tags are display-only labels:Chips and Tags
PrismBadge
Notification badge for counts or status dots:Badge
PrismTextField
Themed text input with validation support, error state, and icon slots:Text Field
PrismProgressBar
Determinate or indeterminate progress indicator:Progress Bar
PrismSkeletonView
Animated loading placeholder that matches your layout:Skeleton
PrismGauge
Circular or linear gauge for values and progress:Gauge
PrismTable
Themed table with sortable columns for macOS and iPad:Table
PrismIcon & PrismIconButton
SF Symbol wrappers with token-based sizing and coloring:Icons
PrismGradient & PrismMeshGradient
Token-aware gradient backgrounds:Gradients
Other Primitives
| Component | Description |
|---|---|
PrismDivider | Themed horizontal/vertical divider using .separator token |
PrismGroupBox | Grouped container with label |
PrismLoadingState | Unified loading/error/empty state view |
PrismPasteButton | System paste button with Prism styling |
PrismImageResource | Type-safe image resource loader |
PrismAsyncImage | Async image with placeholder and error states |
PrismTimelineView | Time-based updating view |
PrismButtonGroup | Grouped button row with consistent spacing |
Themed by Default
Every component reads from the current PrismTheme. Switch themes and all components update instantly.
Accessible
Built-in
aria-label equivalents, focus management, and keyboard navigation. VoiceOver-ready out of the box.