logoRuru UI

Label

A label is a piece of text that describes the purpose of a form element.

Installation

npx ruru-ui-cli@latest add label

Usage

The Label component is used to associate a label with a form element. It is used to describe the purpose of the form element.

Props

NameTypeDefaultDescription
childrenReact.ReactNodenullThe children of the Label component.
classNamestring""Additional class names to apply.
htmlForstring""The ID of the associated element.
...propsReact.LabelHTMLAttributes<HTMLLabelElement>nullAdditional HTML attributes for the label element.

On this page