Components

Components

Browse components, blocks, charts, and motion actions.
78 components · 3 actions

Components

Native controls

4
  • Button

    Displays an action or link with stable loading, success, and error states.

  • Input

    Text input with labels, helper text, leading and trailing adornments, visual variants, and native validation.

  • Native Select

    A select field that uses your browser and operating system's option picker.

  • Textarea

    Multi-line text input with labels, descriptions, and automatic resizing.

Inputs

12
  • Checkbox

    A binary option presented as a labeled box.

  • Combobox

    A searchable dropdown that filters options as you type.

  • File Upload

    File uploads with progress, cancellation, retry, and animated completion.

  • Number Field

    Numeric input with native validation and composable step controls.

  • OTP Field

    One accessible input, presented as individual code cells.

  • Radio Group

    A group of mutually exclusive options.

  • Select

    Single or multiple selection from a short, known option list.

  • Slider

    Single-value and two-handle sliders with keyboard and RTL support.

  • Switch

    On/off toggle for system-level settings.

  • Tag Input

    Enter and validate removable tags with keyboard, paste, and form support.

  • Toggle

    A two-state button that is pressed or unpressed.

  • Toggle Group

    A row of toggles with shared selection state.

Forms

4
  • Field

    Composable labels, descriptions, and validation for native and custom form controls.

  • Fieldset

    Native form grouping with legends, descriptions, and disabled semantics.

  • Form

    A native form with submit, status, and error-summary parts that keep SvelteKit actions and remote forms intact.

  • Label

    A styled native label that names a form control.

Dates

4
  • Calendar

    A composable calendar for choosing a single date.

  • Date Picker

    An editable date field with a calendar popup.

  • Date Range Picker

    Editable start and end dates with a shared calendar popup.

  • Range Calendar

    Choose a start and end date with keyboard navigation and a continuous range highlight.

3
  • Breadcrumb

    A trail of links showing the user's position in a hierarchy.

  • Pagination

    A compact pager that truncates with an ellipsis. Always shows the first and last page so users know how big the data set is.

  • Tabs

    Switch between mutually-exclusive views with horizontal or vertical tabs and a sliding indicator.

Overlays

9
  • Alert Dialog

    A dialog that interrupts the user to confirm a consequential action.

  • Context Menu

    A right-click menu of actions, sharing the dropdown menu's item set.

  • Dialog

    A dialog for focused tasks, forms, and details.

  • Drawer

    A modal panel that slides in from an edge of the screen and can be swiped away.

  • Dropdown Menu

    A menu of actions anchored to a button, for user menus, row actions, and overflow buttons.

  • Hover Card

    A preview card that opens on hover or keyboard focus. Use it for user mentions, link previews, or definitions.

  • Popover

    A floating surface anchored to a trigger element.

  • Sheet

    A modal side panel for navigation, filters, and forms. It slides in from the left or right edge.

  • Tooltip

    Brief explanatory text on hover or focus.

Layout

7
  • Accordion

    Stacked collapsible sections with single- and multi-open modes.

  • Card

    Surface container for grouping related content.

  • Collapsible

    A single panel that expands and collapses.

  • Group

    Connect related controls with separators and optional labels.

  • Scroll Area

    A scroll container with themed scrollbars and optional overflow cues.

  • Separator

    Semantic or decorative divider in either orientation.

  • Table

    Display rows and columns with native table semantics.

Status and content

9
  • Alert

    Notice strips for inline status, confirmation, and warnings.

  • Avatar

    An image with initials while it loads or when it fails.

  • Badge

    Compact labels for status, counts, and tags.

  • Empty State

    Explain why content is missing and give people a useful next step.

  • Kbd

    Inline keyboard-shortcut badge.

  • Progress

    Show how far along a task is. Determinate with value or indeterminate for unknown duration.

  • Skeleton

    Loading content without flicker or layout shift.

  • Spinner

    An animated loading indicator for indeterminate work.

  • Typography

    Semantic document headings, text, inline code, and interface typography primitives.

Blocks

14
  • Code Block

    Code block with syntax-highlighted snippets, a multi-language tab switcher, copy button, and an actions slot. Highlighting via highlight.js.

  • Color Picker

    A hex color picker with HSL, RGB or HSV channel controls and optional preset swatches.

  • Command

    A command palette dialog with fuzzy search and grouped results.

  • Copy Button

    A button that copies text to the clipboard, with copy and copied states.

  • Data Table

    Composable TanStack Table v9 presentation, with sorting, filtering, row selection, and pagination.

  • File Diff

    A unified diff viewer with a file top bar, change counts, and highlighted rows.

  • Folder Card

    Present a collection as a folder with a cover, title tab, index, and count.

  • Markdown

    A safe GFM renderer for polished agent prose, tables, task lists, links, and code.

  • Notch

    A nonmodal panel attached to a viewport edge for short updates and ongoing activity.

  • Reorder List

    Reorder controlled items with pointer or keyboard input.

  • Show More

    Clamp long content and reveal the rest on demand.

  • Task Steps

    Narrate ordered asynchronous work without noisy updates.

  • Toast

    Transient notifications fired from anywhere in your app.

  • Toolbar

    Composable keyboard toolbar with buttons, links, and selectable groups.

AI components

8
  • Attachment

    Local file selection with drop handling, constraints, and composable attachment states.

  • Composer

    A composable prompt input with actions, submission state, and keyboard behavior built in.

  • Conversation

    An auto-following, accessible conversation viewport with empty and jump-to-latest states.

  • Message

    Content-first conversation messages with readable role-aware alignment and contextual actions.

  • Question

    An inline agent question that temporarily replaces the prompt composer with choice or free-text answers.

  • Reasoning

    A concise, expandable reasoning trace for AI assistant responses.

  • Response Stream

    AI response text with bounded arrival motion and natural line wrapping.

  • Tool

    Expandable AI tool calls designed for inline chat transcripts.

Chart components

4
  • Chart

    Bar, line, and area charts built from composable marks.

  • Gauge

    A circular meter for context, usage limits, storage, seats, and other bounded quantities.

  • Heatmap

    A contribution calendar for daily activity.

  • Pie Chart

    Pie and donut charts with exact values, keyboard inspection, and composed labels.

Actions

3
  • Morph

    A Svelte action that animates an icon or text when its value changes.

  • Number Shuffle

    A Svelte action that rolls digits as a numeric value changes.

  • Shimmer

    A Svelte action that sweeps a highlight across loading text or a placeholder.