Skip to main content

Label

Implementation#

import { Label } from "slipstream-ui";
const Example = () => <Label>I am a message</Label>;

Required#

Example
<Label required>I am a required label</Label>

Disabled#

Example
<Label disabled>I am a disabled label</Label>

Size#

Example
<Label size="lg">I am a large label</Label>

Props#

AttributeTypeValueDefault ValueDescription
htmlForSet "for" attribute to match form id on element
disabledbooleanDisabled label UI
sizestringsm/md/lgmdSize of label element
noMarginbooleanfalseRemove bottom margin from label