Skip to content

thedemodev/faency

 
 

Repository files navigation

Build Status npm

Faency is the Containous React component library.

Installation

Run the following command using npm:

npm install @containous/faency --save

If you prefer Yarn, use the following command instead:

yarn add @containous/faency

Usage

  • Wrap your app with the Faency provider
import React from 'react'
import { Provider as FaencyProvider } from '@containous/faency'

const Root = () => (
  <FaencyProvider>
    <App />
  </FaencyProvider>
)
  • In your app you can now import and use Faency components:
import React from 'react'
import { Button } from '@containous/faency'

const App = () => (
  <>
    <Button variant="primary">Click me</Button>
  </>
)

Development

We use Storybook to create a simple, hot-reloading playground for development on Faency components. You can edit/create a *.story.tsx file to preview a component.

Install dependencies using

  yarn

Initialize a Faency build

  yarn run init

Run documentation website + storybook

  yarn start

During this process Faency will be in watch mode which means that any change you made will be automatically applied to storybook and the documentation website.

Build & Release

Build

yarn build

Release

yarn release

About

Faency is the Containous React component library

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 80.4%
  • JavaScript 19.6%