Glasswave UI

Field

Form field primitives: label, hint, and error.

Field

Payment method

Add a new card to your account.

Enter your 16-digit card number

Installation

1pnpm dlx shadcn@latest add @glasswave/field

Usage

1import {2  FieldGroup,3  Field,4  FieldLabel,5  FieldDescription,6  FieldError,7  Input,8} from "glasswave";

FieldLabel is the Radix Label primitive. FieldError sets role="alert" for screen readers.

API Reference

FieldGroup, Field, FieldDescription and FieldError render native elements; FieldLabel wraps Radix UI Label. Each accepts its native attributes plus className.