Skip to content

Toolbar: Create ToolbarRadioButton component #25154

@ling1726

Description

@ling1726

Toolbar currently has a ToolbarToggleButton component that handles multi select scenarios. The toolbar should also have a ToolbarRadioButton component to handle single selection

The current ToolbarRadioGroup should be removed as it introduces API inconsistency that makes selection very strange for users

<Toolbar checkedValues={checkedValues} onCheckedValueChange={onChange}>
  <ToolbarToggleButton name="group">Enable Group</ToolbarToggleButton>
  <ToolbarToggleButton name="group">Enable Group</ToolbarToggleButton>
  {/* 👇 Why is this not handled the same way as the current selection callback */}
  <ToolbarRadioGroup onChange={onChange}>
    <ToolbarRadio />
    <ToolbarRadio />
  </ToolbarRadioGroup>
</Toolbar>

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions