Docs
Input

Input

Displays a form input field or a component that looks like an input field.

Loading...

Installation

	npx shadcn-svelte@latest add input

Usage

	<script lang="ts">
  import { Input } from "$lib/components/ui/input";
</script>

<Input />

Examples

Default

Loading...

Disabled

Loading...

With Label

Loading...

With Text

Loading...

With Button

Loading...

File

Loading...

Form

When using the input within a form, you'll want to use the <Form.Input /> component instead. This is a wrapper around your existing <Input /> component with some additional functionality for forms.

Loading...