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

Function ListGroup

src/ListGroup.js:31–56  ·  view source on GitHub ↗
(props)

Source from the content-addressed store, hash-verified

29};
30
31function ListGroup(props) {
32 const {
33 className,
34 cssModule,
35 tag: Tag = 'ul',
36 flush,
37 horizontal = false,
38 numbered = false,
39 ...attributes
40 } = props;
41 const classes = mapToCssModules(
42 classNames(
43 className,
44 'list-group',
45 // list-group-horizontal cannot currently be mixed with list-group-flush
46 // we only try to apply horizontal classes if flush is false
47 flush ? 'list-group-flush' : getHorizontalClass(horizontal),
48 {
49 'list-group-numbered': numbered,
50 },
51 ),
52 cssModule,
53 );
54
55 return <Tag {...attributes} className={classes} />;
56}
57
58ListGroup.propTypes = propTypes;
59

Callers

nothing calls this directly

Calls 2

mapToCssModulesFunction · 0.90
getHorizontalClassFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…