/react-foundation

Foundation as React components.

Primary LanguageJavaScriptMIT LicenseMIT

React + Foundation

Build Status Test Coverage Code Climate Scrutinizer Code Quality StyleCI npm version npm downloads License Gitter

Foundation as React components.

Demo

https://react.foundation

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:

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

  • Thanks to @jmreidy for releasing the react-foundation package name to us on NPM.

License

See LICENSE.