({ children, size = "md", className, ...otherProps }: ButtonGroupProps)
| 92 | } |
| 93 | |
| 94 | export const ButtonGroup = ({ children, size = "md", className, ...otherProps }: ButtonGroupProps) => { |
| 95 | return ( |
| 96 | <ButtonGroupContext.Provider value={{ size }}> |
| 97 | <AriaToggleButtonGroup |
| 98 | selectionMode="single" |
| 99 | className={cx("relative z-0 inline-flex w-max -space-x-px rounded-lg shadow-xs", className)} |
| 100 | {...otherProps} |
| 101 | > |
| 102 | {children} |
| 103 | </AriaToggleButtonGroup> |
| 104 | </ButtonGroupContext.Provider> |
| 105 | ); |
| 106 | }; |
nothing calls this directly
no outgoing calls
no test coverage detected