An HTML label component. Should be used with Input.
Pass it any class to extend styling.
Passed from Floating and not meant to be used explicitely.
Label above input:
<Flex direction="column">
<Flex.Item>
<Label className="custom-class" htmlFor="name2">
Name
</Label>
</Flex.Item>
<Input
className="custom-class"
id="name2"
name="name2"
placeholder="John Smith"
border={1}
width="100%"
/>
</Flex>
Label next to input:
<Flex justifyContent="space-around" alignItems="center">
<Flex.Item flex="1 1 5%">
<Label className="custom-class" htmlFor="name2" color="tomato">
<Flex.Item flex="1 1 90%">
color="tomato"
borderBottom