styled-alert-component
v4.0.0
Published
The bootstrap alert component created with styled-components
Downloads
364
Maintainers
Readme
styled-alert-component
The bootstrap alert 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-alert-component
npm install --save styled-components@^4.1.3 react@^16.7.0 # Peer dependencies
Usage
For detailed information with examples take a look at the documentation.
// import { Alert } from 'styled-bootstrap-components';
import { Alert } from 'styled-alert-component';
const SuccessAlert = (props) => (
<Alert success>Well done!</Alert>
);
Import components from
styled-bootstrap-component
if you have it installed.
Properties
Properties which can be added to the component to change the visual appearance.
noRadius
Type: booleanpill
Type: booleanprimary
Type: booleansecondary
Type: booleansuccess
Type: booleandanger
Type: booleanwarning
Type: booleaninfo
Type: booleanlight
Type: booleandark
Type: boolean
License
MIT © Lukas Aichbauer