Responsive
Atoms
FormLabel
Default
Molecules
ContactDetails
Default
Organisms
HeaderMinimal
Default
ServicesGroupFinderBlock
With Results No Results

Switch / Default Switch

A toggle switch with two options, left option selected by default

Layout
Properties
Component Code
@await Html.PartialAsync("~/Components/Atoms/Switch/Switch.cshtml", new SwitchProps
{
"Name": "example-switch",
"LeftLabel": "Option A",
"RightLabel": "Option B",
"LeftValue": "option-a",
"RightValue": "option-b",
"DefaultValue": "option-a",
"LeftId": "option-a-id",
"RightId": "option-b-id",
"LeftDataUmb": "",
"RightDataUmb": "",
"IsRequired": false,
"RequiredErrorMessage": ""
})
♿ Accessibility