bem-components-react:一个工厂来创建React组件,这些组件遵循BEM方法并具有一流的打字稿支持

时间:2021-05-17 05:28:57
【文件属性】:
文件名称:bem-components-react:一个工厂来创建React组件,这些组件遵循BEM方法并具有一流的打字稿支持
文件大小:49KB
文件格式:ZIP
更新时间:2021-05-17 05:28:57
TypeScript bem-components-react 一个工厂,用于创建React组件,这些组件遵循BEM方法并具有一流的打字稿支持。 入门 安装: yarn add bem-components-react npm install --save bem-components-react 用法: import { bem } from 'bem-components-react' // specify a class name and a list of variants afterwards const Button = bem . button ( 'button' , [ 'large' , 'small' ] ) function MyComponent ( ) { return < Button large > Click me < / Button > } 该组件将呈
【文件预览】:
bem-components-react-master
----.eslintrc.json(11KB)
----.gitignore(18B)
----tsconfig.cjs.json(173B)
----package.json(2KB)
----src()
--------removeKeys.ts(174B)
--------getClassName.ts(344B)
--------builder.ts(4KB)
--------jsx.tsx(10KB)
--------index.tsx(275B)
----tsconfig.json(337B)
----tsconfig.esm.json(139B)
----UNLICENSE(1KB)
----README.md(2KB)
----.circleci()
--------config.yml(886B)
----test()
--------getClassName.test.ts(786B)
--------integration.test.tsx(2KB)
--------removeKeys.test.ts(291B)
----yarn.lock(89KB)

网友评论