Skip to content
h v3.13.3
Search the docs
Find a component, section or page.

Components

66 parts

Actions

Button

Five variants and sizes, one source of truth.

Button Group

A container that groups related buttons together with consistent styling.

Copy button

An icon or a chip that copies a value, then shows a check.

Hold to confirm

Press and hold to confirm a destructive action.

Toggle

A two-state button that can be either on or off.

Toggle Group

A set of two-state buttons that can be toggled on or off.

Theme toggle

A sun, moon and monitor button, or a sliding pill, that wipes the new theme out from the click.

Feedback

Badge

Filled, tinted and outlined labels, and a tone for severity.

Alert

Displays a callout for user attention.

Progress

Displays an indicator showing the completion progress of a task, typically displayed as a progress bar.

Spinner

An indicator that can be used to show a loading state.

Skeleton

Use to show a placeholder while content is loading.

Sonner

An opinionated toast component for Svelte.

Empty

Use the Empty component to display an empty state.

Data display

Avatar

Initials that stand in for photos.

Flag

A country's flag from its ISO code, sized to the text beside it.

Language flag

A small flag for a language code, with an optional label.

Mark

A brand logo at glyph size that falls back to the initial.

Item

A versatile component for displaying content with media, title, description, and actions.

Tag chip

A label the user wrote: a grey rectangle at the chip radius, an optional mark, and a remove button with a 24px hit area.

Kbd

A key cap for a shortcut, alone or as a group of keys.

Code Block

Displays code, terminal output and diffs with an optional header, line numbers and a copy button.

Table

A responsive table component.

Table view

A read-only table from columns and rows: right-aligned tabular figures, a footer row, a custom cell snippet and a sideways scroll below its minimum width.

Data table

Searchable, sortable client table with pagination, a loading skeleton and row arrows.

Layout

Card

A surface with a header, content and footer.

Separator

Visually or semantically separates content.

Accordion

Stacked sections that open one at a time.

Collapsible

An interactive component which expands/collapses a panel.

Scroll Area

Augments native scroll functionality for custom, cross-browser styling.

Inputs

Label

Renders an accessible label associated with controls.

Field

Combine labels, controls, and help text to compose accessible form fields and grouped inputs.

Simple field

A label, a hint or an error, and the control, with the message linked to it.

Input

A text input component for forms and user data entry with built-in styling and accessibility features.

Input Group

Add addons, buttons, and helper content to inputs.

Textarea

Displays a form textarea or a component that looks like a textarea.

Input OTP

Accessible one-time password component with copy-paste functionality.

Checkbox

A control that allows the user to toggle between checked and not checked.

Radio Group

A set of checkable buttons, known as radio buttons, where no more than one of the buttons can be checked at a time.

Switch

A control that allows the user to toggle between checked and not checked.

Slider

An input where the user selects a value from within a given range.

Star rating input

A star rating you set, read back or lock, in two sizes.

Tags input

Labels picked from the values already used.

File drop zone

Drop, click or paste files into a real file input, so a plain form post sends them.

Select

A themed menu with grouped options.

Native Select

The browser's own select, styled like the kit's fields.

Combobox

A searchable list of choices: a Popover holding a Command.

Calendar

A calendar component that allows users to select a date or a range of dates.

Date Picker

A button that opens a Calendar in a Popover and shows the picked date in words.

Overlays

Tooltip

A popup that displays information related to an element when the element receives keyboard focus or the mouse hovers over it.

Hover Card

For sighted users to preview content available behind a link.

Popover

Displays rich content in a portal, triggered by a button.

Dropdown Menu

Displays a menu to the user, such as a set of actions or functions, triggered by a button.

Context Menu

Displays a menu of actions triggered by a right click.

Dialog

Dialog, alert dialog and sheet on one set of parts: header, body and a banded footer.

Alert Dialog

A modal dialog that interrupts the user with important content and expects a response.

Sheet

Extends the Dialog component to display content that complements the main content of the screen.

Drawer

A panel that slides in and can be dragged shut, on vaul-svelte.

Command

Command menu for search and quick actions.

Picker

A command palette at popover scale: search, groups, hints and a footer.

Tabs

Tabs with a sliding indicator.

Segmented control

Tabs, filter or nav links on one bordered track, with a sliding pill, a badge note on a segment, an underline variant and an overflow menu.

Breadcrumb

Displays the path to the current resource using a hierarchy of links.

Pagination

Pagination with page navigation, next and previous links.

Toolbar

The list-page toolbar row for a pane.

Sidebar

An app's side rail: header, grouped menu, badges and a footer, beside the page.