Duostrap Radio Group
A radio group styled with archived Duostrap beveled gradients and blue focus glow over Base Radio Group.
Duostrap Radio Group renders archived inset-beveled option wells, classic blue checked gradients, and soft #0088cc focus glows while inheriting radiogroup / radio accessibility semantics, roving focus, and controlled state management from Base Radio Group.
Preview
Section titled “Preview”Workspace source
Section titled “Workspace source”This private draft projection is not published on npm, and the installed Proto UI CLI cannot generate its facade. The interactive previews run from workspace source; there is no installed-consumer snippet to copy.
Inside the workspace, use the @proto.ui/prototypes-duostrap/radio-group entry. See the Duostrap README for local build and theme setup.
Styling & Accessibility
Section titled “Styling & Accessibility”- Unchecked indicators display an inset beveled light well (
#f5f5f5→#f9f9f9), switching to the classic#0088cc→#0077b3vertical gradient with a 6px white center dot when checked. - Keyboard focus displays the classic soft blue focus glow (
rgba(82, 168, 236, 0.6)) alongside forced-colors outline preservation. - Arrow keys move roving focus and select across enabled items;
Home/Endjump to the first and last enabled items;Spaceselects the focused item.
Examples
Section titled “Examples”Description
Section titled “Description”Pair each radio item with 12px classic helper text explaining the choice.
Choice Card
Section titled “Choice Card”Use 4px-radius inset option panels that highlight with Bootstrap’s pale blue accent when selected.
Fieldset
Section titled “Fieldset”Group plan choices with FieldRoot, FieldLabel, and FieldDescription.
Disabled
Section titled “Disabled”Disable a single item or the entire group using classic opacity-65 and cursor-not-allowed feedback.
Invalid
Section titled “Invalid”Combine FieldRoot and FieldError to show Duostrap error validation feedback (#b94a48).
| Prop | Type | Default |
|---|---|---|
value | string | — |
defaultValue | string | '' |
disabled | boolean | false |
readOnly | boolean | false |
a11yLabel | string | '' |
| Prop | Type | Default |
|---|---|---|
value | string (required) | '' |
disabled | boolean | false |
Indicator, Events & Methods
Section titled “Indicator, Events & Methods”- Indicator: No props; mirrors checked and disabled state from its parent
Item. - Events:
valueChange({ value: string }) on Root;select({ value: string }) on Item. - Methods:
requestValue(value),resetValue(),focusFirst(),focusLast(),focusNext(),focusPrev(),focusSelected(),focusSelf()on Root.