Label

Form field label. Supports required indicator and description.

Preview

Usage

import { Label } from '@ramtt/ui'

<Label htmlFor="ftp" required>FTP</Label>
<Label description="Your functional threshold power">FTP</Label>

Props

PropTypeDefaultDescription
htmlForstringAssociated input ID
requiredbooleanShow required indicator
descriptionstringHelp text below label
children*ReactNodeLabel text