Field

Combine labels, controls, and help text to compose accessible form fields and grouped inputs.

Profile
This appears on invoices and emails.
This appears on invoices and emails.

Installation

pnpm dlx shadcn@latest add https://blok.sitecore.com/r/field.json

Usage

Examples

The following are examples of our field components.

Input

Account Information
Choose a unique username for your account.
Must be at least 8 characters long.

Textarea

Message
Please provide details about your inquiry.

Select

Preferences
Select your country of residence.

Checkbox

Notifications
Manage how you receive updates.

Radio Group

Payment Method
Choose your preferred payment method.

Switch

Settings

With Separator

Personal Information
Contact Information

With Error

Login

Input with Icon

Contact
Helper text with a link at the end

Input with Addon

Phone Number
+234
Helper text

Disabled

Account Settings
Helper text

ReadOnly

Account Settings
Helper text

Small Size

Small Inputs
This Input has the prop size="sm" enabled
This Select has the prop size="sm" enabled
+234

Input Types

Various Input Types
Select a single date using the Blok date picker.
Select a date range using the Blok date picker.
Select time using dropdown selects for hour, minute, and period.