Component libraryAddress form

Address form

Pro

A controlled native shipping and optional billing address form with consumer-supplied countries, regions, linked errors and reset handling.

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

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

title and shipping configuration are required. Each address is fully controlled and supplies its value, onValueChange, visible legend, native name prefix, consumer-owned country and region options with unique values and string labels, optional linked field errors, native input/select/fieldset attributes and refs. Native autocomplete defaults to shipping or billing name, organization, address lines, city, region, postal code and country while an explicit consumer autoComplete is preserved. Optional billing configuration adds a controlled sameAsShipping native checkbox and independently controlled billing address reveal. The root preserves native form action/method/attributes/ref, final FormData contains the currently mounted named controls, onSubmit is consumer-owned, and busy keeps Submit focusable with aria-disabled while suppressing submission. Native onReset runs before optional onResetRequest and prevention suppresses the higher reset request. Submit/reset preserve native button attributes, form/submitter overrides, refs, explicit aria-disabled false and disabled semantics. Optional description, eyebrow, headings, labels, error summary/ref, status and footer are consumer-owned. The component performs no address lookup, normalization, delivery, payment, account, request, network, storage or persistence work.

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.