import * as React from 'react'; type Props = { /** * Function to execute on selection change. */ onValueChange: (value: string) => void; /** * Value of the currently selected toggle button. */ value: string; /** * React elements containing toggle buttons. */ children: React.ReactNode; }; type ToggleButtonContextType = { value: string; onValueChange: (item: string) => void; }; export const ToggleButtonGroupContext = React.createContext< ToggleButtonContextType >(null as any); /** * Toggle group allows to control a group of toggle buttons. * It doesn't change the appearance of the toggle buttons. If you want to group them in a row, check out `ToggleButton.Row`. * *
*