EmailInput
uitemplate
Common domains to suggest after '@'
Terminal
$termuijs render email-input
Installation
$ bunx termuijs add email-input
Copies the source into src/components/email-input/ and installs @termuijs/core, @termuijs/widgets.
Usage
ts
import { EmailInput } from '@termuijs/ui'ts
new EmailInput(style: Partial<Style> = {}, opts: EmailInputOptions = {},)API Reference
EmailInput
| Prop | Type | Required | Description |
|---|---|---|---|
placeholder | string | optional | — |
domains | string[] | optional | Common domains to suggest after '@' |
onSubmit | (value: string) => void | optional | — |
onChange | (value: string, valid: boolean) => void | optional | — |
errorColor | Color | optional | — |