@melenion/react-foundation
v0.9.2
Published
Foundation as React components.
Downloads
3
Maintainers
Readme
React + Foundation
Foundation as React components.
Demo
Motivation
Foundation is both feature-rich and easy to customize. React on the other hand is awesome because of its simplicity. It's even more awesome when combined with Redux and Immutable.
After building quite a few applications with React and Foundation we noticed that we were writing the same components over and over again. First we tried to find a library that would do the job, but there was none that met our needs. So we collected our notes, started coding and here's the result.
We hope you enjoy it as much as we do!
What's in the box?
The goal is to wrap every part of Foundation into re-usable React components following the framework's
best practices. The primary focus is ease-of-use and extensibility. We use pure render components,
also known as stateless components, whenever possible to keep the memory usage to a minimum. Stateful
components are only used for larger components, such as ResponsiveNavigation
, where state is actually necessary.
All components are unit-tested to ensure their quality.
Here is a list of the available components:
- Accordion
- Badge
- Breadcrumbs
- Button
- ButtonGroup
- Callout
- CloseButton
- FlexVideo
- Grid
- Icon
- Label
- MediaObject
- Menu
- Pagination
- Progress
- ResponsiveNavigation
- Switch
- Tabs
- Thumbnail
- TopBar
More components coming soon!
Install
Install library:
npm install react-foundation --save
Usage
import Foundation from 'react-foundation';
// Use components ...
Documentation is at https://react.foundation and you can use our React starter template as a reference.
Test
Run test suite:
npm test
Credits
License
See LICENSE.