TidalUI

Address form preview

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

pro · Forms · composite

When to use

Alternatives

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

Installation

npx shadcn@latest add @tidal-pro/address-form

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

Preview

Address form component preview

Open interactive preview

Minimal example

import"./components/ui/tidal.css";
import"./components/ui/address-form.css";
import{TidalAddressForm}from"./components/ui/address-form";
export default(p:Parameters<typeof TidalAddressForm>[0])=><div className="tidal-scope"><TidalAddressForm {...p}/></div>;

API and props

TidalAddressForm.shipping (required)
TidalAddressSectionConfig

Required shipping value accepted by this exported component.

TidalAddressForm.title (required)
ReactNode

Required title value accepted by this exported component.

TidalAddressForm.billing
TidalBillingAddressConfig | undefined

Optional billing value accepted by this exported component.

TidalAddressForm.busy
boolean | undefined

Optional busy value accepted by this exported component.

TidalAddressForm.description
ReactNode

Optional description value accepted by this exported component.

TidalAddressForm.disabled
boolean | undefined

Optional disabled value accepted by this exported component.

TidalAddressForm.error
ReactNode

Optional error value accepted by this exported component.

TidalAddressForm.errorRef
Ref<HTMLDivElement> | undefined

Optional error ref value accepted by this exported component.

TidalAddressForm.eyebrow
ReactNode

Optional eyebrow value accepted by this exported component.

TidalAddressForm.footer
ReactNode

Optional footer value accepted by this exported component.

TidalAddressForm.headingLevel
"h2" | "h3" | "h4" | undefined

Optional heading level value accepted by this exported component.

TidalAddressForm.labels
Partial<TidalAddressFormLabels> | undefined

Optional labels value accepted by this exported component.

TidalAddressForm.onReset
((event: FormEvent<HTMLFormElement>) => void) | undefined

Callback invoked when the reset interaction is proposed.

TidalAddressForm.onResetRequest
((event: FormEvent<HTMLFormElement>) => void) | undefined

Callback invoked when the reset request interaction is proposed.

TidalAddressForm.onSubmit
((event: FormEvent<HTMLFormElement>) => void) | undefined

Callback invoked when the submit interaction is proposed.

TidalAddressForm.resetButtonProps
Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> | undefined

Optional reset button props value accepted by this exported component.

TidalAddressForm.resetButtonRef
Ref<HTMLButtonElement> | undefined

Optional reset button ref value accepted by this exported component.

TidalAddressForm.status
ReactNode

Optional status value accepted by this exported component.

TidalAddressForm.submitButtonProps
Omit<ButtonHTMLAttributes<HTMLButtonElement>, "children"> | undefined

Optional submit button props value accepted by this exported component.

TidalAddressForm.submitButtonRef
Ref<HTMLButtonElement> | undefined

Optional submit button ref value accepted by this exported component.

Complete usage

Full example, stylesheet imports, API and accessibility documentation

Gotchas