1.5.0 • Published 2 years ago

@maons/react-components v1.5.0

Weekly downloads
-
License
MIT
Repository
-
Last release
2 years ago

React + Tailwind components

Maons React Components is a simple, modular and accessible component library that gives you the building blocks you need to build your React+Tailwind applications.

You can have a look to storybook playground here 📝.

Install

To use Maons React Components, all you need to do is install the @maons/react-components package:

$ npm install @maons/react-components

# or 

$ yarn add @maons/react-components

Usage

Prepare Tailwind configuration

For a Tailwind configuration to work with the components, you should:

  • Update your tailwind.config.js file to include the @maons/react-components package in the content array. This will allow Tailwind to extract the classes from the components.
  • Extend the theme object to include primary and secondary colors. These colors will be used by the components.
// tailwind.config.js 
{
  content: [
    // ...
    './node_modules/@maons/react-components/**/*.{js,jsx}'
  ],
  // ...
  theme: {
    extend: {
      // Add primary and secondary colors
      colors: ({colors}) => ({
        primary: colors.blue,
        secondary: colors.violet
      })
    }
  },
  // ...
}

Import the component

Now, you can start using a component like so!

import {Button} from '@maons/react-components'


const Example = () => (
  <Button>Click me</Button>
)

License

Licensed under the MIT license.

1.2.0

2 years ago

1.1.1

2 years ago

1.1.0

2 years ago

1.0.0

2 years ago

1.1.5

2 years ago

1.5.0

2 years ago

1.1.4

2 years ago

1.4.0

2 years ago

1.3.1

2 years ago

1.1.3

2 years ago

1.3.0

2 years ago

1.1.2

2 years ago

0.14.5

2 years ago

0.14.6

2 years ago

0.14.8

2 years ago

0.11.0

2 years ago

0.12.0

2 years ago

0.13.0

2 years ago

0.12.1

2 years ago

0.14.0

2 years ago

0.12.2

2 years ago

0.15.0

2 years ago

0.12.3

2 years ago

0.16.0

2 years ago

0.17.0

2 years ago

0.14.3

2 years ago

0.14.4

2 years ago

0.10.0

2 years ago

0.9.0

2 years ago

0.8.2

2 years ago

0.7.1

2 years ago

0.7.0

2 years ago

0.6.4

2 years ago

0.6.3

2 years ago

0.6.2

2 years ago

0.6.1

2 years ago

0.6.0

2 years ago

0.5.1

2 years ago

0.5.0

2 years ago

0.4.1

2 years ago

0.4.0

2 years ago

0.3.3

2 years ago

0.3.2

2 years ago

0.3.1

2 years ago

0.2.0

2 years ago