Components
Every component is a standard HTML element that works in any framework. Pick one to see its API, examples, and browser support.
No components match your search.
Input
Date Input sv-date-input A date or time field split into segments, like month, day, and year. Editable sv-editable Shows a value as text that turns into a text field on a click, like a document title. File Input sv-file-input A drop zone that lists the selected files and leaves the upload to your code. Masked Input sv-masked-input Keeps typed text in a fixed format, like a phone number or a date. Number Input sv-number-input A text field for numbers, with step buttons and locale-aware formatting. Otp Input sv-otp-input Takes a one-time code in one box for each character, like a sign-in code from an SMS. Text Input sv-text-input A single-line text field with an optional clear button, password toggle, and counter. Text Area sv-text-area A multi-line text field that can grow with its content, like a chat message box.
Selection
Calendar sv-calendar Shows one or more months where the user picks a date, a range, or several dates. Checkbox sv-checkbox Turns a single option on or off, with an indeterminate state for a partial selection. Chip sv-chip A selectable pill with a label, for filters, tags, and short lists of options. Combobox sv-combobox A text field with a list that filters while the user types. Listbox sv-listbox Shows a list of options on the page for picking one or more values. Radio sv-radio A radio button that lets the user check one option out of a group. Rating sv-rating Lets users pick a value by clicking or dragging across a row of shapes, like stars. Segmented Control sv-segmented-control A single-selection control, like a radio group, that submits its value with forms. Select sv-select Lets users pick one or more options from a dropdown list that you can fully style. Switch sv-switch Turns a single setting on or off, like Wi-Fi on a settings page. Tree sv-tree Shows nested items that expand and collapse, with optional selection and checkboxes.
Slider
Area Slider sv-area-slider Sets an x and a y value with one thumb that moves inside an area. Polar Slider sv-polar-slider Picks an angle and a radius with one thumb on a circle, like a direction and a speed. Range sv-range Picks one or more ordered values on one track, like the two ends of a price range. Slider sv-slider Picks one number from a range by dragging the thumb or pressing the arrow keys.
Color
Color Area sv-color-area Picks two channels of a color on a plane, like saturation and brightness. Color Grid sv-color-grid Lets the user pick one color from a grid of preset colors, like a label color. Color Group sv-color-group Links the color sliders, areas, wheels, and swatches inside it to one shared color. Color Input sv-color-input A color field split into segments, like the red, green, and blue of a color. Color Slider sv-color-slider A slider for picking one channel of a color, like hue, brightness, red, or alpha. Color Swatch sv-color-swatch A radio that shows a color, for picking one color out of a set of presets. Color Wheel sv-color-wheel Picks two channels of a color on a wheel, like hue and saturation.
Action
Copy Button sv-copy-button Copies text to the clipboard and shows for a short time whether the copy worked. Download Button sv-download-button Saves text, a blob, or a linked file, and shows for a moment whether it worked. Flyout sv-flyout Opens a popover beside a trigger button, like a dropdown panel or a context menu. Menu sv-menu Opens a list of commands from a button, with submenus and keyboard navigation. Breadcrumbs sv-breadcrumbs Shows the path to the current page as a trail of links that collapses to fit one row. Pagination sv-pagination Shows controls to move between the pages of a long list, like search results. Toggle sv-toggle A button that switches an option on or off and keeps its pressed state visible. Toggle Group sv-toggle-group Joins toggle buttons into one control, like the bold and italic buttons of an editor.
Layout
Accordion sv-accordion Shows and hides a section of content under a summary, like an answer in an FAQ. Carousel sv-carousel Shows slides one page at a time, with arrow buttons, page indicators, and swipe. Collapsible sv-collapsible Shows and hides a block of content with a height animation, like a details panel. Dialog sv-dialog Shows content or asks for a decision in a modal or non-modal dialog above the page. Divider sv-divider Draws a line between pieces of content, with an optional label in the line. Splitter sv-splitter Lays out panels with handles that resize them, like the sidebar and editor of an IDE. Stepper sv-stepper Shows the progress through a flow of steps, like a checkout or a setup wizard. Tabs sv-tabs Switches between panels of content with a row or column of tab buttons.
Feedback
Alert Dialog sv-alert-dialog Asks the user to confirm or cancel an action in a modal dialog. Callout sv-callout Sets a note, a tip, or a warning apart from the text around it. Meter sv-meter A bar that shows a value within a known range, like disk usage or battery level. Progress Bar sv-progress-bar A straight bar that shows how far a task has come, or that it is still running. Progress Ring sv-progress-ring A ring that shows how far a task has come, or that it is still running. Skeleton sv-skeleton Shows a placeholder in the shape of content while that content loads. Spinner sv-spinner Shows that something is loading when there is no progress value to show. Toaster sv-toaster Shows short notifications in a stack that expands on hover, tap, or focus. Tooltip sv-tooltip Shows a short label beside an element on hover or keyboard focus.
Display
Avatar sv-avatar Shows a picture of a person or thing, with initials or an icon when there is no picture. Badge sv-badge Pins a count or a status dot to an element, like unread messages on a button. Compare sv-compare Compares two versions of the same content with a draggable divider, like photo edits. Marquee sv-marquee Scrolls its content in an endless loop, like a logo strip or a news ticker. Number Formatter sv-number-formatter Shows a number in the format of the locale, like "1,234.5", "$1,234.50", or "1.2K". Qr Code sv-qr-code Draws a QR code that phones can scan to open a link or read a short text. Relative Time sv-relative-time Shows a date relative to now, like "3 minutes ago" or "in 2 days". Timeline sv-timeline Shows events in order along a line, like an order history or a changelog. Timer sv-timer Counts down to zero or up like a stopwatch, and shows the time in the page's locale.
Utility
Anchor sv-anchor Places an element beside an anchor, trying other sides and alignments until one fits. Code Editor sv-code-editor A simple code editor with syntax highlighting from any highlighter, like highlight.js. Expression Parser sv-expression-parser Evaluates expressions that users write, like price * 2, without eval(). Reveal sv-reveal Reveals elements as they scroll into view, like cards that fade in one by one. Template sv-template Renders copies of an HTML template at runtime, each filled with its own data. Text Flow sv-text-flow Animates each character that changes in a short text, like a counter or a price. UI State sv-ui-state Binds named stores of state to plain HTML and updates the page when a store changes.