ZBMui

Field

View markdown

A component that provides labeling and validation for form controls.

Visible on your profile

Installation

components/ui/field.tsx

Usage

Examples

Required field with indicator

Pass the showRequiredIndicator prop to the FieldLabel component to indicate that a field is required.

Optional field with indicator

Pass the showOptionalIndicator prop to the FieldLabel component to indicate that a field is optional.

Disabled

Pass the disabled prop to the Field component to disable the entire field.

With error message

Enter an invalid email and press Enter to see the error.

API Reference

Field Props

Component type props
Prop
Type
Default
Expand prop details

ZBMui

Built by the ZBM.

© 2026 ZBM ui. All rights reserved.