MCPcopy Create free account
hub / github.com/untitleduico/react / ButtonGroup

Function ButtonGroup

components/base/button-group/button-group.tsx:94–106  ·  view source on GitHub ↗
({ children, size = "md", className, ...otherProps }: ButtonGroupProps)

Source from the content-addressed store, hash-verified

92}
93
94export 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};

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected