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
| Attribute | Type | Description | Default |
|---|---|---|---|
| label | string | | Label text | - |
| requiredIndicator | boolean | | Show required indicator | - |
| as | label | span | div | | Rendered HTML element | label |
| className | string | | - | - |