TidalUI

Email input preview

A labeled email field with validation and help text.

free · Forms · primitive

When to use

Alternatives

Configure components.json and the @tidal-pro namespace before installing Pro components.

Installation

npx shadcn@latest add https://tidalui.com/r/form-field.json

Import components/ui/tidal.css, components/ui/form-field.css. Wrap installed components in tidal-scope.

Preview

Email input component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/form-field.css";
import{TidalField}from"./components/ui/form-field";
export default()=><div className="tidal-scope"><TidalField label={"Demo"}/></div>;

API and props

TidalField.label (required)
string

Required label value accepted by this exported component.

TidalField.description
string | undefined

Optional description value accepted by this exported component.

TidalField.error
string | undefined

Optional error value accepted by this exported component.

TidalField.leading
ReactNode

Optional leading value accepted by this exported component.

TidalField.rootClassName
string | undefined

Optional root class name value accepted by this exported component.

TidalField.trailing
ReactNode

Optional trailing value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas