mkelley33 / wix-style-react

Common React UI components for all Wix verticals developing in React

Home Page:https://wix-wix-style-react.surge.sh

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

wix-style-react is a collection of React components that conform to Wix Style created by Wix UX guild.

Setup

  • Install with npm or yarn:
npm i wix-style-react
# OR
yarn add wix-style-react
  • Use in your project:
import React from 'react';
import Button from 'wix-style-react/Button';

const MyComponent = () =>
  <Button onClick={() => console.log('thanks for clicking :)')}>
    Click me!
  </Button>;

Requirements

  • Load Wix fonts from CDN
    <link rel="stylesheet" href="//static.parastorage.com/services/third-party/fonts/Helvetica/fontFace.css">
  • Ensure <body> has either ltr or rtl class applied to it (depending on displayed language);

Tips

  • Use Yoshi as build tool to avoid configuration. Otherwise follow webpack setup instructions here
  • Enable font smoothing with browser specific css properties, for example:
    html {
      -webkit-font-smoothing: antialiased;
      -moz-osx-font-smoothing: grayscale;
    }
  • Use demo pages to find all available components with examples.

Contributing

Please refer to the Contribution page

Tests

Please refer to the Testing page

License

This project is offered under MIT License.

About

Common React UI components for all Wix verticals developing in React

https://wix-wix-style-react.surge.sh

License:MIT License


Languages

Language:JavaScript 91.7%Language:CSS 8.2%Language:HTML 0.1%Language:Shell 0.0%