Components
Feedback
Ask users to give their feedback about your service at any point of the journey.
Children are the body.
Import
import * as Feedback from 'govuk-react/feedback';Examples
Default
Code
<Feedback.Composite title="Help us improve this service">
<Body>
Tell us about your experience using this service. <Link href="#">Give us your feedback</Link>
</Body>
</Feedback.Composite>With parts
Code
<Feedback.Root>
<Feedback.GridRow>
<Feedback.GridColumn>
<Feedback.Title>Help us improve this service</Feedback.Title>
</Feedback.GridColumn>
</Feedback.GridRow>
</Feedback.Root>API reference
Feedback.Root
Ask users to give their feedback about your service at any point of the journey.
No props of its own. Other props are passed to the element it renders.
Feedback.Body
No props of its own. Other props are passed to the element it renders.
Feedback.Composite
Ask users to give their feedback about your service at any point of the journey.
Children are the body.
| Prop | Type |
|---|---|
headingLevelHeading level, from | 1 | 2 | 3 | 4 | 5 | 6 |
titleRequiredThe title of the Feedback component. | ReactNode |
Feedback.GridColumn
| Prop | Type |
|---|---|
width | ColumnWidth | "full-from-desktop" | "one-half-from-desktop" | "one-third-from-desktop" | "two-thirds-from-desktop" | "one-quarter-from-desktop" | "three-quarters-from-desktop" |
Feedback.GridRow
Organise the layout of the page into blocks.
No props of its own. Other props are passed to the element it renders.
Feedback.Title
| Prop | Type |
|---|---|
headingLevelHeading level, from | 1 | 2 | 3 | 4 | 5 | 6 |