Behive Tech Registry

Form Field

v0.3.0

Dumb wrapper that provides label + hint/error + required-marker layout around any form control (`Checkbox`, `Input`, `Textarea`, `Select`, `Toggle`, ...) — the same job AntD's `Form.Item` does. The control itself owns none of this chrome; it just needs an `id` matching `htmlFor`.

pnpm add @behivetech/forms.form-field

Edit the code and the preview updates as you type. Every registry export is in scope — FormField from this package, plus React hooks and every other component in the registry.

Playground
const BasicFormField = () => (
  <FormField label="Email" htmlFor="email">
    <input id="email" type="email" />
  </FormField>
);

render(<BasicFormField />);