Input

A text field with optional labels, helper text, and decorative adornments. Comes in two variants.

Configure Project

Installation

Copy the command below and run it in your terminal.

bunx @sivir-ui/svelte add input

Usage

Import the Input and use it in your component:

import { Input } from '$lib/sivir/components/input';

<Input label="Email" placeholder="you@example.com" />

Examples

Add context with adornments, choose a visual variant, and use native validation.

Adornments

Use non-interactive leading and trailing snippets with text-entry inputs for icons, units, or short context.

Outline

Secondary

Validation

Use native constraints with error messages that respond to blur and form submission.

We'll use this to send workspace invites.

Lowercase letters, numbers, and hyphens only.

Anatomy

Input - Accepts a single-line value.