Utility
Terminal
ā
email-input-demo ā
Loading preview... ā
ā
ā
ā
ā
ā
ā
ā
ā
ā
ā
ā
ā
ā
ā
āInstallation
$ pnpm dlx shadcn@latest add @termcn/opentui/email-input
Usage
import { EmailInput } from "@/components/ui/email-input";<EmailInput
label="Email"
placeholder="you@example.com"
onSubmit={(value) => console.log("Submitted:", value)}
/>API Reference
EmailInput
| Prop | Type | Default |
|---|---|---|
value | string | - |
onChange | (value: string) => void | - |
onSubmit | (value: string) => void | - |
label | string | - |
placeholder | string | "you@example.com" |
autoFocus | boolean | false |
id | string | - |
width | number | 40 |
suggestions | string[] | ["gmail.com", "yahoo.com", "hotmail.com", "outlook.com"] |