Input
States
Section titled “States”input-states.tsx
import { Stack } from "@/components/ui/stack"
import { Input } from "@/components/ui/input"
export function InputStates() {
return (
<Stack direction="col" className="gap-2 max-w-sm">
<Input placeholder="Type here" />
<Input value="not-an-email" invalid />
<Input placeholder="Disabled" disabled />
<Input type="file" />
</Stack>
)
}
input-types.tsx
import { Stack } from "@/components/ui/stack"
import { Input } from "@/components/ui/input"
export function InputTypes() {
return (
<Stack direction="col" className="gap-2 max-w-sm">
<Input type="text" placeholder="Plain text" />
<Input type="email" placeholder="you@company.com" />
<Input type="password" placeholder="••••••••" />
<Input type="search" placeholder="Search…" />
</Stack>
)
}