Package Exports
- reactstrap
- reactstrap/lib
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (reactstrap) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
reactstrap
A work in progress react component library for Bootstrap 4. Don't use this just yet.
Installation
Add reactstrap
as a dependency via npm:
npm install reactstrap --save
Import the components you need, example:
import { Button } from 'lib/index';
Buttons
Basic Button Styles
import React from 'react';
import { Button } from 'lib/index';
const Example = (props) => {
return (
<div>
<Button color="primary">primary</Button>
<Button color="secondary">secondary</Button>
<Button color="success">success</Button>
<Button color="info">info</Button>
<Button color="warning">warning</Button>
<Button color="danger">danger</Button>
<Button color="link">link</Button>
</div>
);
};
Support for using custom components
import React from 'react';
import { Link } from 'react-router'
import { Button } from 'lib/index';
const Example = (props) => {
return (
<div>
<Button el={Link} to="/home" color="link">Home Link</Button>
</div>
);
};
more coming soon
Development
Install dependencies:
npm install
Run examples at http://localhost:8080/ with webpack dev server:
npm start
Run tests & coverage report:
npm test
Watch tests:
npm run test-watch