AsterUIDocsv1.0.2

Docs / Component reference

PhoneInput

Choose an international dialing code separately from the local number.

Phone input example

Install

sh
npx @fierst/ui@1.0.2 add phone-input

Registry dependencies: theme.

Exports from ./ui/phone-input: PhoneInput.

Download the registry source for phone-input 1.0.2.

API contracts

ts
export function* PhoneInput(
  props: {
    label?: string;
    value?: string;
    defaultCountry?: string;
    placeholder?: string;
    onChange?: (e164: string) => void;
    class?: string;
  },
  ctx: Ctx,
)