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

Filter / Secondary Variant (Dynamic Label)

Radio filter with dynamic label that updates on selection

Layout
Properties
JSON format (e.g., [{"LinkText":"Home","LinkUrl":"/"}])
Component Code
@await Html.PartialAsync("~/Components/Molecules/Filter/Filter.cshtml", new FilterProps
{
"Label": "Location",
"Name": "location",
"Items": [
{
"Value": "london",
"Text": "London",
"Selected": false
},
{
"Value": "manchester",
"Text": "Manchester",
"Selected": false
},
{
"Value": "birmingham",
"Text": "Birmingham",
"Selected": false
},
{
"Value": "edinburgh",
"Text": "Edinburgh",
"Selected": false
}
],
"InputType": "radio",
"Variant": "secondary",
"ShowClear": true,
"IsOpen": false,
"IsVisible": true,
"CssClass": ""
})
♿ Accessibility