Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/willdady/react-elements
A library of reusable React components.
https://github.com/willdady/react-elements
Last synced: 2 months ago
JSON representation
A library of reusable React components.
- Host: GitHub
- URL: https://github.com/willdady/react-elements
- Owner: willdady
- Created: 2014-08-02T04:14:27.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2016-06-20T11:59:27.000Z (over 8 years ago)
- Last Synced: 2024-04-14T19:52:49.958Z (9 months ago)
- Language: JavaScript
- Size: 935 KB
- Stars: 35
- Watchers: 5
- Forks: 8
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# React Elements
A library of reusable React components consisting of the following:
```HTML
```
**DEMO:** http://willdady.github.io/react-elements/
## Installation
```bash
npm install --save react-elements
```## Usage
To include a component in your project simply import the component.
```javascript
import Switch from 'react-elements/dist/Switch';
```### Component stylesheets
Most components have an accompanying stylesheet. When using a component be sure
to include the component's stylesheet in your build otherwise the component
will fail to render correctly.Stylesheets are written using [BEM syntax](https://css-tricks.com/bem-101/) and all classes are prefixed
with ```re-```.Pre-built CSS files can be found in `dist/css`. Source SCSS can be found in
the `styles` directory in the project's root.#### Button
Please note the `` component composes the `` component so be sure to include both component's stylesheets.