@nimbus-ds/label
The label component allows us to name elements within a form.
Installation
$ yarn add @nimbus-ds/label
# or
$ npm install @nimbus-ds/label
Component Anatomy
The component consists of styled base text, which consumes our typography and color tokens.
Guidelines
We use this component as a slot that can receive text and icons with tooltips, which help the user to understand what information is required when filling out forms.
Label is recommended for:
- Naming fields of Input text
- Naming options in a Select
- Naming options in a Radio Button list
- Name options in a list of Checkboxes
Usage
View docs here.