A follow up to #2468 - to match the implementation to PF4 core the current API should be changed to include the label when the toggle is off and a different label when the toggle is on.
To solve this two ways come to mind:
- update the type of label from string to string[2] where the first item is the label on on and the second one is on off
- create two props labelOn and labelOff for the on and off states respectively.
This is going to be breaking change as it changes the API of the switch component.
//cc @jgiardino
Reactions are currently unavailable
A follow up to #2468 - to match the implementation to PF4 core the current API should be changed to include the label when the toggle is off and a different label when the toggle is on.
To solve this two ways come to mind:
This is going to be breaking change as it changes the API of the switch component.
//cc @jgiardino