Skip to content

Components

The platform ships parallel component libraries, intentionally shaped so a control’s API is recognisable across stacks:

  • Web — bits-ui (headless primitives) + custom wrappers under apps/svelte-web/src/lib/components/ui/. ~49 directories, ~213 .svelte files.
  • Native mobile — two shared packages, one per platform, consumed by both the customer and the agent app: native/MeridianUI (SwiftPM) and apps/android/core/design-system (:core:design-system). The primitives are lockstep across iOS and Android so feature code never re-rolls UI. The authoritative list lives on Conventions → Mobile (Native).

For framework rules — kebab-case filenames (web) vs PascalCase (native), no hand-rolled buttons, generated design tokens over hardcoded color — see Conventions → Web and Conventions → Mobile (Native).

Organized by tier (per the team’s internal style guide). All bits-ui wrappers live under apps/svelte-web/src/lib/components/ui/{name}/; higher-level domain compositions live under apps/svelte-web/src/lib/components/{feature}/.

ComponentSource dirPurpose
Buttonui/button/bits-ui Button + size / variant slots
Inputui/input/Text input wrapper with focus ring tokens
Labelui/label/Form label with required / optional indicator slots
Cardui/card/Card container with Header / Title / Description / Content / Footer subparts
Dialogui/dialog/Modal overlay; the “destructive confirm” pattern lives here
Sheetui/sheet/Side-anchored panel (left / right / top / bottom)
Drawerui/drawer/Vaul-svelte mobile-first sheet with snap points
Tabsui/tabs/Tabbed pages; tab list + tab triggers + tab panels
Accordionui/accordion/Collapsible disclosure groups
Selectui/select/Single-select dropdown (Combobox for filtering)
Comboboxui/combobox/Filtered Select with text search
Switchui/switch/Boolean toggle
Toggleui/toggle/Stateful pressed button
Checkboxui/checkbox/Tri-state checkbox
RadioGroupui/radio-group/Single-pick radios
DatePicker / Calendarui/date-picker/ + ui/calendar/Date input + month grid
Popoverui/popover/Anchored floating panel
Tooltipui/tooltip/Hover-triggered label
DropdownMenuui/dropdown-menu/Menu with submenus, separators, checkboxes
Separatorui/separator/Horizontal or vertical rule
ScrollAreaui/scroll-area/Custom scrollbar wrapping native overflow
Commandui/command/Cmdk-style palette (used in headers + admin tools)
NavigationMenuui/navigation-menu/Top-level nav primitive
ToggleGroupui/toggle-group/Exclusive / multi pressed-button set (view switchers)
Sliderui/slider/Single or dual-thumb range on the track / primary-solid pair; commits on release (onValueCommit)
ConfirmDialogui/confirm-dialog/Dialog preset for the destructive-confirm pattern (title, body, danger action)
ConfirmAlertui/confirm-alert/Inline alert variant of the confirm pattern for non-modal contexts
AuthModalui/auth-modal.svelteSign-in / sign-up modal (email OTP + Google) mounted from any gated action
CookieConsentBannerui/cookie-consent-banner.svelteBottom consent banner with accept / manage
ComponentSource dirPurpose
Fieldui/field/Label + Input + error container (standalone — no Formsnap dep)
Formvia Formsnapsuperforms + Zod integration; emit <Form.Field> per input
InputGroupui/input-group/Prefix / suffix slots around an Input (currency symbol, unit)
InputOTPui/input-otp/6-digit code split inputs with auto-advance
Textareaui/textarea/Multi-line input
NumberStepperui/number-stepper/+/− buttons around a numeric value
NumericInputui/numeric-input/Numeric-only Input with comma thousands formatting
PhoneInputui/phone-input/MX-default international phone field
TimeRangeFieldui/time-range-field/Start + end time picker, used in tour scheduling
Formui/form/Formsnap wrappers (Form.Field, Form.Control, Form.Label, Form.FieldErrors) over superforms
RadioCardui/radio-card/Card-shaped radio option (plan pickers, listing type)
LocationComboboxui/location-combobox/Combobox over the places index (city / neighbourhood), form-action friendly
LocationAutocompleteui/location-autocomplete.svelteFree-text location search with grouped results (search takeover + hero)
PlacesAutocompleteui/places-autocomplete.svelteGoogle Places address autocomplete for exact addresses (listing wizard)
ComponentSource dirPurpose
Tableui/table/Header / body / row primitives
DataTablevia TanStack Svelte TableColumn defs + filtering + pagination
Carouselui/carousel/Embla-svelte image carousel (property galleries)
Alertui/alert/Inline info / warning / error banner
Progressui/progress/Linear progress bar
Badgeui/badge/Variants neutral · success · warning · destructive · info · featured · tonal · ink · tertiary · outline; roles (kind) status · type · count — only count is a pill
Avatarui/avatar/Image with the Meridian initials fallback (avatar-fallback-1 → 2 gradient, foreground initials)
DataTableui/data-table/TanStack-table wrappers: sortable header, toolbar, pagination
PillChipui/pill-chip/Filter / selection chip (selectable + dismissible)
ComponentSource dirPurpose
Spinnerui/spinner/Loading indicator
Skeletonui/skeleton/Placeholder rectangles
Toaster / Toastvia svelte-sonnerBottom-anchored toast; integrate via <Toaster /> at root
EmptyStateui/empty-state/Icon + heading + body + CTA (used across dashboard / portal / mobile)
StatCardui/stat-card/KPI tile with label + value + delta
Sonnerui/sonner/The themed <Toaster /> wrapper around svelte-sonner
ComponentSource dirPurpose
LaunchpadTileui/launchpad-tile/7 variants — Counter, Link, KPI, Status, Shortcut, Grouped, default. Shared base styles; used for hub / dashboard navigation.
ButtonGroupui/button-group/Joined buttons (segmented controls)
Command paletteui/command/Global search palette (⌘K)
SearchTakeoverui/search-takeover/Full-screen mobile search surface (location + filters)
ButtonCardui/button-card/Large tappable card acting as a button (hub entry points)
PageContainerui/page-container/Page width + gutter wrapper (content-max 1200px)

The primitives live in two shared packages — native/MeridianUI (SwiftPM, both iOS apps) and apps/android/core/design-system (:core:design-system, both Android apps) — with matching APIs and visuals on iOS and Android. Colors come from the generated token files via @Environment(\.tokens) (iOS) / LocalTokens.current (Android) — never hardcoded hex — spacing and radii from Metrics (Metrics.gutter, Metrics.cardRadius, Metrics.inputRadius, Metrics.thumbRadius, Metrics.badgeRadius), elevation from the Metrics.Shadow tiers (iOS .meridianShadow(.raised)) / Metrics.Elevation* (Android), and the rule is no hand-rolled buttons — including AlertDialog slots, which use DialogActionButton / DialogDismissButton (Android) or DangerConfirmButton for a destructive confirm.

The shared set includes: PrimaryButton / SecondaryButton / TertiaryButton / DestructiveButton / DangerConfirmButton, DialogActionButton / DialogDismissButton (Android), ListRow, SwitchRow, CheckboxRow, SegmentedControl (single + multi select), SelectablePill / DismissibleChip, AvatarView / Avatar (initials on the avatarFallback1 → 2 gradient), StatusBadge (tones pending · success · info · neutral · destructive), Toast (via ToastCenter), EmptyState, Skeleton, text Inputs, PhoneField, OtpField, SearchField, SectionCard, FlowLayout (iOS), PickerSheet, TabRootHeader, ChromeButton / GlassIconButton (iOS), IconActionButton (Android). Property cards compose platform-native card/image/specs views with the favorite heart, multi-unit pills, and price-drop badge.

The authoritative list — and the mobile-ui-audit skill that flags violations — lives on Conventions → Mobile (Native).

For the runtime rules that govern how these components are used:

  • Conventions → Web — form-action template, Formsnap integration, auth gates, error handling.
  • Conventions → Mobile (Native) — PascalCase filenames, generated design tokens (no hardcoded color), cookie auth, the shared primitive list.
  • Design → Tokens — the color, typography, spacing, radius, and shadow values these components consume.
  • Design → Principles — the design intent (property-first hierarchy, status taxonomy, dark mode strategy).