flow-components
flow-components copied to clipboard
Add clear button possibility to RadioButtonGroup component
Describe your motivation
In my case, using RadioButtonGroup as "filter" for items (with just 2-3 options) seems better for UI/UX than, for example, ComboBox (no click required to open). But I want users to be able to clear this radioButtonGroup filter.
Describe the solution you'd like
Add setClearButtonVisible() method to RadioButtonGroup component by implementing HasClearButton interface as ComboBoxBase does.
Describe alternatives you've considered
Just use comboBox component with items of radioButtonGroup with clear button visible. However, in certain scenarios like mine, i consider built-in clear button possibility to be useful in radioButtonGroup component.
Additional context
No response