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/labeled

Labels a plain field from its source, for layouts that do not wrap each field in a <RecordField>.

Props

PropTypeDefaultDescription
childrenReactElement—The one field (or input) to label.
classNamestring—
componentElementType—The wrapper element. Defaults to `div`.
fullWidthboolean—
htmlForstring—Makes the label a `<label>` for the control with this id.
isRequiredboolean—
labelReactNode—Overrides the child's `label`; `false` renders no label.
resourcestring—Overrides the child's `resource` when resolving the label.
sourcestring—Overrides the child's `source` when resolving the label.