JSPM

  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 27
  • Score
    100M100P100Q44396F
  • License MIT

React components based on zurb foundation using CSS modules

Package Exports

  • fain

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 (fain) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

fain

React components based on bootstrap 4 using CSS modules

Install

To use these components you need to include this module as part of your ES6 transformations.

  1. npm install fain --save
  2. Include this package as part of your ES6 transformations
// webpack.config.js

module.exports = {
  // ...
  loaders: [
    {
      test: \/.jsx?$/,
      exclude: /node_modules\/(?!fain)/,
      loader: 'babel',
    },
  ],
  //...
};

Example

import React, { PropTypes } from 'react';

import { Button } from 'fain/components/buttons';
import { Column, Container, Row } from 'fain/components/layout';

function Root() {
  render() {
    return (
      <Container>
        <Row>
          <Column smallSize={8}>
            <Button outline primary>Sign In</Button>
          </Column>
        </Row>
      </Container>
    );
  }
}

export default Root;