README
LabelText
Import
import LabelText from '@govuk-react/label-text';
Usage
Simple
<LabelText>Example</LabelText>
References:
Properties
Prop | Required | Default | Type | Description |
---|---|---|---|---|
children |
true | `````` | node | Text for the label |
Styled span element with children displayed as text.
<script type="module">
import sliceAndDiceGovukReactLabelText from 'https://cdn.skypack.dev/@slice-and-dice/govuk-react-label-text';
</script>
import LabelText from '@govuk-react/label-text';
Simple
<LabelText>Example</LabelText>
Prop | Required | Default | Type | Description |
---|---|---|---|---|
children |
true | `````` | node | Text for the label |