4.0.0 • Published 6 years ago
styled-listgroup-component v4.0.0
styled-listgroup-component
The bootstrap listgroup component made with styled-components.
This is a modular approach to use bootstrap components for quick prototypes, as an entrypoint of your own component library, or if you need just one bootstrap component for your application.
Installation
npm install --save styled-listgroup-component
npm install --save styled-components@^4.1.3 react@^16.7.0 # Peer dependenciesUsage
For detailed information take a look at the documentation.
import {
ListGroup,
ListGroupItem,
} from 'styled-listgroup-component';
const MyListGroupComponent = (props) => (
<ListGroup>
<ListGroupItem active>Cras justo odio</ListGroupItem>
<ListGroupItem>Dapibus ac facilisis in</ListGroupItem>
<ListGroupItem>Morbi leo risus</ListGroupItem>
<ListGroupItem>Porta ac consectetur ac</ListGroupItem>
<ListGroupItem disabled>Vestibulum at eros</ListGroupItem>
</ListGroup>
);Properties
Properties which can be added to the component to change the visual appearance.
flushonly on ListGroup Type: booleanprimaryonly on ListGroupItem Type: booleansecondaryonly on ListGroupItem Type: booleansuccessonly on ListGroupItem Type: booleandangeronly on ListGroupItem Type: booleanwarningonly on ListGroupItem Type: booleaninfoonly on ListGroupItem Type: booleanlightonly on ListGroupItem Type: booleandarkonly on ListGroupItem Type: booleanactiononly on ListGroupItem Type: booleanactiveonly on ListGroupItem Type: booleandisabledonly on ListGroupItem Type: boolean
License
MIT © Lukas Aichbauer