Component libraryEmail input
Email input
FreeA labeled email field with validation and help text.
npx shadcn@latest add https://tidalui.com/r/form-field.jsonInstallation
Terminal
Import components/ui/tidal.css, components/ui/form-field.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
Native input props, ref and required supported. label required; description, error, decorative leading, trailing, rootClassName optional. className targets the native input. Help/error IDs compose with aria-describedby; error sets aria-invalid and announces via role=alert.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.