PhoneInput
International phone entry with country selection and formatted numbers.
Installation
Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.
Copy an example into your project with the shadcn CLI: npx shadcn@latest add https://design.gaudi.site/r/phone-input-field-states.json.
Usage
Examples
Field states
API
7 props
Accessibility
Associate a visible label with the input and name the country selector. The application owns phone verification and validity feedback.
Related
InputText, search, numeric and date inputs with prefix and suffix slots.11 examplesFieldField composes form label, description, error, and input building blocks.7 examplesCalendarDate selection for single dates, ranges, bookings and localized calendars.11 examplesCascaderSelect items from hierarchical data using drill-down, columns, search and multiple selection.12 examplesColorPickerAn inline color canvas with hue, opacity, an eyedropper, and HEX/RGB/HSL/CSS editors.FileUploadChoose or drop attachments with validation, upload progress and recovery actions.5 examples