---
title: "Fields"
description: "Labelled inputs bound to React Hook Form: text, email, password with rules, counted text areas, numbers, selects, comboboxes, radio cards, checkboxes, and switches."
plan: Pro
docs: https://ui.edbn.me/docs/forms/form-fields
example: text
---

# Fields

Labelled inputs bound to React Hook Form: text, email, password with rules, counted text areas, numbers, selects, comboboxes, radio cards, checkboxes, and switches.

## Installation

This is a Pro item. Once per project, create a token at https://ui.edbn.me/dashboard/tokens, put it in `.env.local` as `EDBN_TOKEN`, and add the registry to `components.json`:

```json
{
  "registries": {
    "@edbn": {
      "url": "https://ui.edbn.me/r/{name}.json",
      "headers": { "Authorization": "Bearer ${EDBN_TOKEN}" }
    }
  }
}
```

Then install:

```bash
npx shadcn@4.19.0 add @edbn/form-fields
```

## Dependencies
- npm: react-hook-form@^7.87.0, lucide-react@^1.33.0
- edbn: form-core, field, input, input-group, textarea, select, combobox, checkbox, radio-group, switch

## Usage: Text

The example code is part of Pro (https://ui.edbn.me/pricing). With the user's token, the edbn MCP server's `get_example` tool returns it: https://ui.edbn.me/mcp

## Examples
- [Text](https://ui.edbn.me/docs/forms/form-fields/text) (Markdown: https://ui.edbn.me/docs/forms/form-fields.md?demo=text)
- [Password](https://ui.edbn.me/docs/forms/form-fields/password) (Markdown: https://ui.edbn.me/docs/forms/form-fields.md?demo=password)
- [Choices](https://ui.edbn.me/docs/forms/form-fields/choices) (Markdown: https://ui.edbn.me/docs/forms/form-fields.md?demo=choices)

## Files
- components/forms/fields/text-field.tsx (107 lines)
- components/forms/fields/password-field.tsx (180 lines)
- components/forms/fields/textarea-field.tsx (151 lines)
- components/forms/fields/number-field.tsx (167 lines)
- components/forms/fields/select-field.tsx (74 lines)
- components/forms/fields/combobox-field.tsx (96 lines)
- components/forms/fields/checkbox-field.tsx (44 lines)
- components/forms/fields/checkbox-group-field.tsx (91 lines)
- components/forms/fields/radio-group-field.tsx (118 lines)
- components/forms/fields/switch-field.tsx (54 lines)

## For agents
- Base theme, once per project: npx shadcn@4.19.0 add https://ui.edbn.me/r/edbn-base.json
- MCP server with search, items, examples and source: https://ui.edbn.me/mcp
- Every page and item: https://ui.edbn.me/llms.txt
