README
ErrorText
Import
import ErrorText from '@govuk-react/error-text';
Usage
Simple
<ErrorText>Example</ErrorText>
References
Properties
| Prop | Required | Default | Type | Description |
|---|---|---|---|---|
children |
true | `````` | string | Text to describe the error |
Renders a styled span element containing children provided.
<script type="module">
import sliceAndDiceGovukReactErrorText from 'https://cdn.skypack.dev/@slice-and-dice/govuk-react-error-text';
</script>
import ErrorText from '@govuk-react/error-text';
Simple
<ErrorText>Example</ErrorText>
| Prop | Required | Default | Type | Description |
|---|---|---|---|---|
children |
true | `````` | string | Text to describe the error |