This package has been deprecated

Author message:

Buffet.js is deprecated please use @buffetjs/core instead

buffetjs

1.0.6 • Public • Published



React Components Library made with styled-components

Monthly download on NPM Travis Build Status

Getting Started

Installation

Using yarn

yarn add buffetjs
# Install the required dependencies 
yarn add lodash prop-types react react-dom react-router-dom styled-components

or npm

npm install buffetjs --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:

import React from 'react';
import {
  Enumeration,
} from 'buffetjs';
 
const Page = () => {
  const [state, setState] = React.useState('milk');
 
  return (
    <header>
      <p>Title</p>
    </header>
    <section>
      <Enumeration
        name="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>
  );
}
 
export default Page;

Documentation

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

Readme

Keywords

none

Package Sidebar

Install

npm i buffetjs

Weekly Downloads

12

Version

1.0.6

License

MIT

Unpacked Size

9.15 MB

Total Files

139

Last publish

Collaborators

  • lauriejim
  • soupette