Pro
Form builder
Builds a working form: add fields from the palette, reorder by drag or Alt and arrows, set validation and show-when rules, then preview the real form and copy its schema.
pnpm dlx shadcn@latest add @caliper/form-builderWhen to use
Use it for
- Surveys, intake and application forms your customers design.
- Internal tools where operations staff change questions.
Skip it when
- A form you write once in code; use fields directly.
Installation
pnpm dlx shadcn@latest add @caliper/form-builder
Adds its 15 files to components/ui/, each with its own stylesheet, and installs their packages. Pro installs with your access token, set up once per project. See Pro access. The first part also adds Caliper UI’s tokens; import them once as in Installation.
Usage
Import it from your copy of the source. The example behind the preview comes with the source. It is built from FormBuilder, FormPreview and fieldVisible.
import { FormBuilder, FormPreview, fieldVisible } from "@/components/ui/form-builder"
The worked example comes with Pro
The 30-line example behind the preview opens here, ready to copy.
- 626 Pro parts, blocks and page templates, all with source
- $149 once, with lifetime updates. No renewal
- A full refund within 14 days if it is not for you
API reference
FormBuilder
component
FormPreview
component
fieldVisible
component
Accessibility
It exposes button, status and alert semantics, with aria-label, aria-hidden, aria-pressed, aria-describedby and aria-invalid kept in step with state. Changes that matter are announced through a live region.
Motion
Transitions use the shared duration and easing tokens. Under prefers-reduced-motion those tokens collapse to instant and travel distances go to zero, so state changes still happen without movement.
Related
- Settings screenSettings that show what changed before you save: an ember mark and the previous value on each field, one bar that names the changes.
- Password resetForgot password and choose a new one: a cooldown on resend, wording that never reveals who has an account, and clear expired and saved states.
- Email verificationConfirm an address with a six-digit code that checks itself when complete, with resend and a way to fix a typo.