Skip to content

Add optional disable prop to ToggleGroup component. #6359

@indraraj

Description

@indraraj

Describe the issue. What is the expected and unexpected behaviour?
There is no way to disable <ToggleGroup> as a whole. There should be a prop like disable for ToggleGroup to do it.

Is this a bug or enhancement? If this issue is a bug, is this issue blocking you or is there a work-around?
Enhancement
Currently to disable the ToggleGroup I had to disable the ToggleGroupItem individually.
e.g
https://codesandbox.io/s/hy5kv?file=/index.js

What is your product and what release version are you targeting?

  • @patternfly/react-core@4.115.2

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

Status

Done

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions