Component libraryMasked input

Masked input

Pro

Enter structured identifiers through a native text field while forms receive the exact raw token value.

npx shadcn@latest add @tidal-pro/masked-input
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/masked-input

Import components/ui/tidal.css, components/ui/masked-input.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 raw value and caller-owned onValueChange; bounded mask grammar with default digit, ASCII letter and alphanumeric tokens or consumer-supplied single-character tokens; escaped literals and sparse compatible-slot assignment preserve later values when an earlier token is deleted; optional case transforms apply only when the result remains one valid character; semantic label, description, progress and string validity messages; exact hidden native form mirror; native input, form, autocomplete, inputMode and event props; caller-first preventable input/change/key/composition handlers; selection-aware Backspace/Delete, paste and IME completion; required/incomplete validity, disabled/readOnly, visible and hidden refs, RTL, forced colors and reduced motion. The component formats only the supplied mask and performs no request, storage, country inference or identifier validation beyond token matching.

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.