Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 980 Bytes

README.md

File metadata and controls

16 lines (14 loc) · 980 Bytes

<HtmlLabel />

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)