Input
Text, search, numeric and date inputs with prefix and suffix slots.
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/input-group-addons.json.
Usage
Playground
Examples
Addon placement
AI prompt inputs
Multi-field composer
Dropdown selectors
Hints and states
Inline actions
Search with filters
Labels and messages
Password with strength meter
Style variants
Input types
API
9 props
Accessibility
Compose Field, FieldLabel, FieldDescription and FieldError. Keep labels visible and connect errors to their control.
Notes
- EmailInput is a named export from the Input entry. It composes Input with a text editor, an email keyboard hint, email autocomplete and single-address pattern validation, so it supports smooth caret mode.
- EmailInput fixes type=text and inputMode=email; multiple addresses are unsupported. An additional pattern narrows the allowed addresses. Invalid author patterns are ignored while email validation remains active.
- EmailInput keeps raw text (spaces are invalid), reports patternMismatch instead of typeMismatch, and leaves custom error copy to FieldError/onInvalid. required, minLength/maxLength, name, form, value/defaultValue, refs and event handlers reach the native editor.
- Smooth caret is enabled by default. Use EmailInput for addresses and NumberField for numeric values throughout forms and examples; reserve native email/number types for documented semantic exceptions. Provider and per-field caretMode=native overrides remain available.
Related
NumberFieldNumeric entry with increment buttons, bounds, locale formatting and scrubbing.2 examplesFieldField composes form label, description, error, and input building blocks.7 examplesDropdownMenuAction menus with keyboard navigation, checkbox choices and destructive actions.8 examplesPopoverPopover renders compact positioned supporting content next to its trigger.8 examplesTooltipBrief contextual help attached to an independently labelled control.4 examplesAvatarProfile images, resilient initials, presence, verification, account menus and collaborator groups. The existing Avatar API and curated patterns share the same image and fallback primitives.10 examples