Skip to content

Latest commit

 

History

History
18 lines (14 loc) · 627 Bytes

README.md

File metadata and controls

18 lines (14 loc) · 627 Bytes

WIP.

Old MIUI inspired design components for React. Breaking changes may happen until 1.0.0.

Usage:

  • Import global.scss
  • Import cssReset named export and include it in <style> tag
  • Import getCssText named export, call it and include result in <style> tag
  • Import any needed component from named exports

Your bundler needs to handle scss files, including scss modules.

For next.js projects use something like this with your next.config.js:

const createTranspileModules = require("next-transpile-modules");
const withTM = createTranspileModules(["react-miui"]);
module.exports = withTM({});