(props)
| 29 | }; |
| 30 | |
| 31 | function 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 | |
| 58 | ListGroup.propTypes = propTypes; |
| 59 |
nothing calls this directly
no test coverage detected
searching dependent graphs…