Skip to main content

Label

A simple label component.


Usage​

import { Label } from "@newfold/ui-component-library";

<Label label="This is a label"/>

Required Indicator​

Use the requiredIndicator prop to show a required indicator (*).

<Label
label="A label for a required field"
requiredIndicator={true}
/>

Props​

AttributeTypeDescriptionDefault
labelstring | Label text-
requiredIndicatorboolean | Show required indicator-
aslabel | span | div | Rendered HTML elementlabel
classNamestring | --

Hello From Root