react-kitt
v1.1.3
Published
Super lightweight React User Inteface components
Downloads
6
Maintainers
Readme
React kitt
Super lightweight React User Inteface components to help you get started. All components are very easy to customize using sass
. You can also extends react-kitt
to create own components for your brand.
Completely compatible with Tailwind CSS and Post CSS
- Github - https://github.com/rmdort/react-kitt
- Documentation - https://rmdort.github.io/react-kitt/
What is included
- React stateless functional components
- Customisable color theme
- SASS files for all components
- Material icons support
- MIT License
List of components
- Alert
- Button
- Button Group
- Cards
- Dropdown and popovers
- Flex based grid
- Icon (material icons)
- Icon buttons
- Menu
- Modal dialogs
- Pagination
- Pills
- Progress bars
- Tabs, accordion and toggles
- Toggle
- Tooltip
How to use
Install react-kitt from npm
yarn add react-kitt
or
npm install react-kit --save
Include react-kitt styles
import 'react-kitt/lib/styles/main.scss'
Enable TailWind CSS
You can enable Tailwind CSS in styles/main.scss
by uncommenting
@tailwind preflight;
@tailwind utilities;
Import components from react-kitt
import { Button, Dropdown, Menu, MenuItem, MenuDivider, withToggle } from 'react-kitt'
Webpack configuration
To compile sass or css, you need to have css-loader
, style-loader
, sass-loader
and node-sass
installed.
yarn add css-loader style-loader sass-loader node-sass --dev
Add this to your webpack config file
{
test: /(\.scss|\.css)$/,
loaders: ['style-loader', 'css-loader', 'sass-loader']
}
Example project
We have include a demo webpack project in example
folder
React guidelines
https://github.com/airbnb/javascript/blob/master/react/README.md