wix-style-react
is a collection of React components that conform to Wix Style created by Wix UX guild.
- Install with
npm
oryarn
:
npm i wix-style-react
# OR
yarn wix-style-react
- Use in your project:
Note: ensure
body
has eitherltr
orrtl
class (depending, of course, on the displayed language).
import React from 'react';
import Button from 'wix-style-react/Button';
const MyComponent = () =>
<Button onClick={() => console.log('thanks for clicking :)')}>
Click me!
</Button>;
Note:
wix-style-react
works best when Yoshi is used as build tool. If you do not use it, read here for webpack setup instructions.
demo page includes all available components with their usage examples.
Please refer the Testing page
Please refer the Contribution page
This project is offered under MIT License.