43 Pro components and page blocks

Get Pro

Waitlist Input

New

Preview

Customize

Radius14px
Succeeds

Usage

import { WaitlistInput } from "@/components/uibrik/waitlist-input/waitlist-input";

<WaitlistInput />

Installation

npx shadcn@latest add https://uibrik.com/r/waitlist-input.json
Adds the files to components/uibrik/waitlist-input and installs motion. With the @uibrik namespace set up: npx shadcn@latest add @uibrik/waitlist-input.

Props

WaitlistInput
placeholder
Type string
"you@company.com"
Placeholder in the field.
buttonLabel
Type string
"Join waitlist"
Text on the button.
successMessage
Type string
"You're on the list. We'll write to {email}."
Shown once joined. {email} becomes the address.
radius
Type number
14
Corner radius of the field. The button follows it.
onSubmit
Type (email: string) => void | Promise<void>
–
Called with the email. Return a promise for the loading state; throw with a message to show it.
className
Type string
–
Classes for the form.