Formssrc/components/ui/field.tsx

Field

Composes labels, controls, descriptions, and validation messages.

Preview

Payment Method

All transactions are secure and encrypted

Enter your 16-digit card number

Billing Address

The billing address associated with your payment method

Installation

Copy the component source into your project with `degit`. This port is intentionally not distributed as an npm package.

bunx degit https://github.com/LiasCode/shadcn-preact/src/components/ui#main ./src/components/ui

Usage

import { Field } from "@/components/ui/field"

export function Example() {
  return <Field>Field</Field>
}

API Reference

ExportPurpose
FieldComposable part exported by `@/components/ui/field`.