Input

inputs

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

Preview

Installation

npm install @launchapp/design-system
Import
import { Input } from "@launchapp/design-system";

Examples

Basic Input

<Input type="email" placeholder="Email" />

Disabled Input

<Input disabled placeholder="Disabled" />

With Label

<div className="grid w-full max-w-sm items-center gap-1.5">  <Label htmlFor="email">Email</Label>  <Input type="email" id="email" placeholder="Email" /></div>

Props

PropTypeDefaultDescription
type
string"text"HTML input type.
placeholder
string—Placeholder text.
disabled
booleanfalseDisables the input.
value
string—Controlled value.
onChange
React.ChangeEventHandler<HTMLInputElement>—Change event handler.
className
string—Additional CSS classes.