-
Notifications
You must be signed in to change notification settings - Fork 2
Button
Lydia Gray edited this page Nov 16, 2022
·
9 revisions
Refer to Stockport Design System for styling information and reference images
| Property | Type | Required | Default Value | Description |
|---|---|---|---|---|
| ButtonId | string | ✔️ | ❌ | Button id that is unique to the page (For Continue buttons, use the buttonId 'continue') |
| Text | string | ❌ | Continue/ Submit - for SubmitForm behaviour | Text describing the action the button performs |
| ClassName | string | ❌ | govuk-button | Adds class to the button, ie: govuk-button--secondary |
| Disabled | bool | ❌ | false | Disables the button |
| DisableOnClick | bool | ❌ | false | Disables the button after a user has clicked the button NOTE: This is enabled on the initial lookup search pages and any page which has a SubmitForm or SubmitAndPay action type |
{
"Title": "Your hobbies",
"PageSlug": "your-hobbies",
"Elements": [
{
"Type": "Button",
"Properties": {
"ButtonId": "continue"
}
}
]
}{
"Type": "Button",
"Properties": {
"ButtonId": "continue",
"Text": "Custom text",
"ClassName": "govuk-button--warning",
"Disabled": false,
"DisableOnClick": true
}
}- Availability
- Actions
- Behaviours
- Breadcrumbs
-
Conditions
- String Conditions
- Date Conditions
- Integer Conditions
- File Upload Conditions
- Custom validation
-
Elements
- AddAnother
- Address
- Button
- Booking
- Checkbox
- Date Input
- Date Picker
- Declaration
- Document Download
- Document Upload
- File Upload
- H1-H6
- HR
- Image
- Inline Alert
- Link
- Map
- Multiple File Upload
- OrderedList
- Organisation
- P
- Radio
- Select
- Street
- Summary
- Success page
- Textarea
- Textbox
- Time input
- Unordered List
- Uploaded files summary
- Warning
- EnabledFor
- Feedback form
- File uploads
- Form Schema
- Header
- Inbound Values
- Integrating with PowerAutomate/0365
- Lookup
- Page
- Payment & Payment calculations
- Preview data structure
- Render conditions
- Reusable elements
- Structure tests
- Success page
- Tag parsers
- Target mapping
- Validators