• This repository has been archived on 07/Mar/2023
  • Stars
    star
    601
  • Rank 74,537 (Top 2 %)
  • Language
    JavaScript
  • License
    MIT License
  • Created over 8 years ago
  • Updated over 1 year ago

Reviews

There are no reviews yet. Be the first to send feedback to the community and the maintainers!

Repository Details

Foundation as React components.

React + Foundation

Build Test Coverage Maintainability StyleCI npm version npm downloads License

Foundation as React components.

Demo

https://digia.online/react-foundation-docs/

Components with Bit

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

Install foundation-sites:

npm install foundation-sites --save

Usage

// Add Foundation to index.js
import 'foundation-sites/dist/css/foundation.min.css';

// import components
import { Button, Colors } from 'react-foundation';

// Use components ...
function SubmitButton() {
  return <Button color={Colors.SUCCESS}>Submit</Button>;
}

Documentation is at https://digia.online/react-foundation-docs/.

Note: Newer versions of foundation-sites do not offer out of the box support for <Row/> and <Column/> components. If working with a newer version, <Grid/> and <Cell/> components should be used instead.

// Previous versions
<Row className="display">
  <Column small={2} large={4}>4 columns</Column>
  <Column small={4} large={4}>4 columns</Column>
  <Column small={6} large={4}>4 columns</Column>
</Row>

// Newer versions
<Grid className="display">
  <Cell small={2} large={4}>4 columns</Cell>
  <Cell small={4} large={4}>4 columns</Cell>
  <Cell small={6} large={4}>4 columns</Cell>
</Grid>

Contributing

Please read our guidelines.

Credits

  • Thanks to Nord Software and Digia for sponsoring initial development.
  • Thanks to @jmreidy for releasing the react-foundation package name to us on NPM.

License

See LICENSE.

More Repositories

1

graphql-php

A PHP7 implementation of the GraphQL specification.
PHP
217
star
2

lumen-cors

CORS module for the Lumen PHP framework.
PHP
96
star
3

react-boilerplate

This project is deprecated. Please use CRA instead.
JavaScript
86
star
4

react-starter

Our starter template for immutable React applications with Redux.
JavaScript
71
star
5

lumen-elasticsearch

Simple wrapper of https://github.com/elastic/elasticsearch-php for the Lumen PHP framework.
PHP
57
star
6

react-flow-types

Flow type definitions for React
JavaScript
51
star
7

redux-fetch-data

Redux utility library for fetching data using promises on both server and client.
JavaScript
40
star
8

lumen-file-manager

File manager module for the Lumen PHP framework.
PHP
38
star
9

lumen-doctrine

Doctrine module for the Lumen PHP framework.
PHP
36
star
10

lumen-newrelic

New Relic instrumentation for the Lumen framework
PHP
28
star
11

lumen-oauth2

OAuth2 module for the Lumen PHP framework.
PHP
27
star
12

lumen-search

Search module for the Lumen PHP framework.
PHP
26
star
13

lumen-fractal

Fractal module for the Lumen PHP framework.
PHP
26
star
14

lumen-graphql

GraphQL module for the Laravel and Lumen PHP frameworks.
PHP
25
star
15

yii2-account

A module for the Yii framework that provides common account functionality.
PHP
24
star
16

lumen-rbac

RBAC module for the Lumen PHP framework based on Overseer.
PHP
22
star
17

lumen-image-manager

Image manager module for the Lumen PHP framework.
PHP
21
star
18

lumen-core

Core module for the Lumen PHP framework.
PHP
20
star
19

yii-account

Extension that provides basic account functionality for the Yii PHP framework.
PHP
19
star
20

lumen-doctrine-mongodb-odm

Doctrine MongoDB ODM bindings for lumen
PHP
15
star
21

paytrail-php

Paytrail REST client for PHP.
PHP
13
star
22

docs

12
star
23

yii-emailer

Extension for creating and sending emails for the Yii PHP framework.
PHP
12
star
24

yii2-file-manager

A low-level interface for managing files in Yii applications
PHP
12
star
25

docker-nginx-php-node

Docker container for a web server running Nginx, PHP-FPM and Node.js
ApacheConf
11
star
26

lumen-sparkpost

SparkPost module for the Lumen PHP framework.
PHP
11
star
27

lumen-dynamodb

Module for AWS DynamoDB
PHP
10
star
28

yii-paymentmanager

Payment manager for the Yii PHP framework.
PHP
9
star
29

yii-audit

Extension that collect audit data for the Yii PHP framework.
PHP
7
star
30

lumen-chained-exception-handler

A chained exception handler for the Lumen framework
PHP
7
star
31

yii-parsley

Parsley.js integration for the Yii PHP framework.
PHP
6
star
32

react-foundation-docs

Documentation for React + Foundation
JavaScript
6
star
33

lumen-cloudinary

Cloudinary module for Lumen PHP framework.
PHP
6
star
34

yii-paytrail

Paytrail implementation for the yii-payment extension.
PHP
6
star
35

lumen-serializer

Serializer module for the Lumen PHP framework.
PHP
6
star
36

lumen-oauth2-dynamodb

DynamoDB support for the lumen-oauth2 module
PHP
5
star
37

graphql-relay-php

WIP: Relay support for https://github.com/digiaonline/graphql-php
PHP
5
star
38

outdoors-sports-map

Helsingin kaupungin Ulkoliikuntakartta.
HTML
5
star
39

lumen-mandrill-mailer

Mandrill mailer for the Lumen PHP framework
PHP
4
star
40

nettineuvoja

Nettineuvoja
JavaScript
4
star
41

lumen-file-manager-dynamodb

DynamoDB support for the lumen-file-manager module
PHP
4
star
42

lumen-contentful-sync

A framework for synchronizing content from Contentful to a Lumen API
PHP
3
star
43

vagrant-ansible-lemp

Local Vagrant LEMP-environment
PHP
3
star
44

yii-cms

DEPRECATED CMS module for the Yii PHP framework.
3
star
45

drupal-scripts

Some handy tools for working with Drupal
Shell
3
star
46

oops

The open-sourced version of our ops
Shell
3
star
47

yii-sphinx

DEPRECATED Sphinx search extension for Yii framework
2
star
48

techradar

Our company Tech Radar
HTML
2
star
49

graphql-datetime-scalar-php

Date, Time and DateTime scalar types for our GraphQL implementation
PHP
2
star
50

cuddly-potato

Hammertime!
Go
2
star
51

eslint-config-nordsoftware

JavaScript
2
star
52

api-recorder

Recorder and player for HTTP requests in Kotlin
Kotlin
2
star
53

wifi-dashboard

Self-contained dashboard interface for the (old) office network
JavaScript
2
star
54

thor

Thor is our company robot.
CoffeeScript
2
star
55

yii-rest

Simple REST API for the Yii application framework.
PHP
2
star
56

yii-mandrill

DEPRECATED Mandrill integration for Yii
2
star
57

yii-utils

Utility classes for the Yii PHP framework.
PHP
2
star
58

vagrant-drupal

Vagrant environment for Drupal projects
2
star
59

lumen-sns-middleware

Collection of middleware and helpers for dealing with AWS SNS notifications
PHP
2
star
60

generator-nord-backbone

Yeoman generator that scaffolds our Backbone applications.
JavaScript
1
star
61

agile-workshops

1
star
62

yii-parsley2

DEPRECATED Parsley.js v2 integration for the Yii PHP framework.
PHP
1
star
63

smart-form

JavaScript
1
star
64

yii2-image-manager

A low-level interface for managing images in Yii applications
PHP
1
star
65

nordsoftware.github.io

The old homepage for open source at Nord Software. New site:
JavaScript
1
star
66

vuejs-01-intro

HTML
1
star
67

lumen-contentful

A Lumen service provider for Contentful
PHP
1
star
68

yii-ga-reports-api

DEPRECATED Google Analytics Reports API extension for Yii framework
1
star
69

image-manipulation-service

Simple image manipulation service
PHP
1
star
70

docker-node-grunt-bower

Docker container running Node.js, Grunt and Bower
1
star
71

ionic-app

Project template for any Ionic application
C++
1
star
72

docker-nginx-php

Docker container for a web server running Nginx and PHP-FPM based on Debian
ApacheConf
1
star