Skip to content

Forms

Label

Bundle size
1.42 KB
3.1.0

Renders a label in an accessible form, with its respective controls.

This component is a slight expansion of the Label developed and maintained by Radix UI.

It is based on the native label element, it will automatically apply the correct labelling when wrapping controls or using the for attribute.

Terminal window
pnpm add @inpulse-ui/label

Contains the content for the label.

PropTypeDefault ValueRequired
asChildbooleanfalseNo
forstring-Yes
size

enum

No
valuestring-No

The for property should reflect the name of the field that the Label is related to. It will not be rendered in the DOM if for property is not provided.

<Label for="example">Example</Label>

This is the default application, which allows greater possibilities by accepting any content, including JSX elements.

This application is optional and only accepts string.

The label component supports the following sizes: xs, sm, md, lg.

Project

Built with by Jo Santana in Brazil.

© 2026 Inpulse. All rights reserved.