(props)
| 2 | import { ListGroup, ListGroupItem } from 'reactstrap'; |
| 3 | |
| 4 | function Example(props) { |
| 5 | return ( |
| 6 | <div> |
| 7 | <p> |
| 8 | The <code>horizontal</code> prop can be a Boolean or a string specifying |
| 9 | one of Bootstrap‘s breakpoints |
| 10 | </p> |
| 11 | <ListGroup horizontal> |
| 12 | <ListGroupItem tag="a" href="#"> |
| 13 | Cras justo odio |
| 14 | </ListGroupItem> |
| 15 | <ListGroupItem tag="a" href="#"> |
| 16 | Dapibus ac facilisis in |
| 17 | </ListGroupItem> |
| 18 | <ListGroupItem tag="a" href="#"> |
| 19 | Morbi leo risus |
| 20 | </ListGroupItem> |
| 21 | <ListGroupItem tag="a" href="#"> |
| 22 | Porta ac consectetur ac |
| 23 | </ListGroupItem> |
| 24 | <ListGroupItem tag="a" href="#"> |
| 25 | Vestibulum at eros |
| 26 | </ListGroupItem> |
| 27 | </ListGroup> |
| 28 | <p className="mt-3"> |
| 29 | This list group is horizontal at the <code>lg</code> breakpoint and up. |
| 30 | </p> |
| 31 | <ListGroup horizontal="lg"> |
| 32 | <ListGroupItem tag="a" href="#"> |
| 33 | Cras justo odio |
| 34 | </ListGroupItem> |
| 35 | <ListGroupItem tag="a" href="#"> |
| 36 | Dapibus ac facilisis in |
| 37 | </ListGroupItem> |
| 38 | <ListGroupItem tag="a" href="#"> |
| 39 | Morbi leo risus |
| 40 | </ListGroupItem> |
| 41 | <ListGroupItem tag="a" href="#"> |
| 42 | Porta ac consectetur ac |
| 43 | </ListGroupItem> |
| 44 | <ListGroupItem tag="a" href="#"> |
| 45 | Vestibulum at eros |
| 46 | </ListGroupItem> |
| 47 | </ListGroup> |
| 48 | <p className="mt-3"> |
| 49 | Note that horizontal list groups cannot be combined with flush list |
| 50 | groups. If <code>flush</code> is <code>true</code> then{' '} |
| 51 | <code>horizontal</code> has no effect. |
| 52 | </p> |
| 53 | </div> |
| 54 | ); |
| 55 | } |
| 56 | |
| 57 | Example.parameters = { |
| 58 | docs: { |
nothing calls this directly
no outgoing calls
no test coverage detected
searching dependent graphs…