Skip to content
This repository was archived by the owner on Mar 8, 2023. It is now read-only.

Repository files navigation



React Components Library made with styled-components

Monthly download on NPMTravis Build StatusStrapi on Slack

Getting Started

Installation

Using yarn

yarn add @buffetjs/core @buffetjs/hooks @buffetjs/styles
# Install the required dependencies
yarn add lodash prop-types react react-dom react-router-dom styled-components

or npm

npm install @buffetjs/core @buffetjs/styles @buffetjs/hooks --save
# Install the required dependencies
npm install lodash prop-types react react-dom react-router-dom styled-components --save

Example

Import buffet.js into your project as follows:

importReactfrom'react';import{Enumeration,}from'@buffetjs/core';constPage=()=>{const[state,setState]=React.useState('milk');return(<header><p>Title</p></header><section><Enumerationname="enumeration"onChange={({target: { value }})=>setState(value)}options={[{value: 'flour',label: 'Flour',},{value: 'milk',label: 'Milk',},{value: 'butter',label: 'Butter',},]}value={state}/></section><footer>
Made with love by Strapi
</footer>);}exportdefaultPage;

Documentation

See the documentation at buffetjs.io/storybook for more informations.

About

Buffet.js — React Components Library made with styled-components

Topics

Resources

Contributing

Stars

538 stars

Watchers

6 watching

Forks

Releases

Packages

Used by

Contributors

Languages