MCPcopy Create free account
hub / github.com/reactstrap/reactstrap / ButtonGroup

Function ButtonGroup

src/ButtonGroup.js:23–43  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

21};
22
23function ButtonGroup(props) {
24 const {
25 className,
26 cssModule,
27 size,
28 vertical,
29 tag: Tag = 'div',
30 ...attributes
31 } = props;
32
33 const classes = mapToCssModules(
34 classNames(
35 className,
36 size ? 'btn-group-' + size : false,
37 vertical ? 'btn-group-vertical' : 'btn-group',
38 ),
39 cssModule,
40 );
41
42 return <Tag {...{ role: 'group', ...attributes }} className={classes} />;
43}
44
45ButtonGroup.propTypes = propTypes;
46

Callers

nothing calls this directly

Calls 1

mapToCssModulesFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…