Labeled
Labels a plain field from its source, for layouts that do not wrap each field in a <RecordField>.
Installation
pnpm dlx shadcn@latest add @chelone/labeledLabels a plain field from its source, for layouts that do not wrap each field in a <RecordField>.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| children | ReactElement | — | The one field (or input) to label. |
| className | string | — | |
| component | ElementType | — | The wrapper element. Defaults to `div`. |
| fullWidth | boolean | — | |
| htmlFor | string | — | Makes the label a `<label>` for the control with this id. |
| isRequired | boolean | — | |
| label | ReactNode | — | Overrides the child's `label`; `false` renders no label. |
| resource | string | — | Overrides the child's `resource` when resolving the label. |
| source | string | — | Overrides the child's `source` when resolving the label. |