Component libraryFormula field

Formula field

Pro

Compose a formula source with consumer-supplied field references and validation.

npx shadcn@latest add @tidal-pro/formula-field
Desktop viewport

Installation

Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.

Terminal
npx shadcn@latest add @tidal-pro/formula-field

Import components/ui/tidal.css, components/ui/formula-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

Controlled exact string value, native textarea name and preventable input proposal; bounded bracket-token suggestions with keyboard selection and full-token replacement; consumer-supplied validation issues; semantic label, description, instructions and linked issue list; root and textarea refs with React 19 cleanup; native textarea attributes with owned combobox, value, availability, form-association and unsafe-markup fields excluded and runtime-cleared; disabled, read-only, required, IME, RTL, narrow, forced-color and reduced-motion states. The in-flow suggestion surface preserves an outside native pointer activation before it closes. Consumers own parsing, validation, evaluation, authorization, persistence and all external effects.

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.

Building with an agent?Give it the installation guide and component catalog.