import { HtmlLabel } from 'ihme-ui'
An HTML <label>
to wrap interactive content.
Property | Required | Type(s) | Defaults | Description |
---|---|---|---|---|
children |
element | |||
className |
CommonPropTypes.className | className applied to <label> |
||
htmlFor |
string | ID of a labelable element; useful if label does not contain its control. See https://www.w3.org/TR/html5/forms.html#attr-label-for. |
||
icon |
string | path to image to render within label tag | ||
onClick |
func | signature: (SyntheticEvent) => {...} | ||
onMouseOver |
func | signature: (SyntheticEvent) => {...} | ||
text |
string | text to render within label tag | ||
theme |
one of: 'dark', 'light' | 'light' | one of: 'dark' (color: white ), 'light' (color: black ) |