@accurat/react-components 中文文档教程
Accurat React Components
用于 Accurat 项目的 React 组件集合。
目的是提供随时可用、易于定制的 UI 组件来设置 Web 项目。 它们对于快速原型也很有用。
Install
yarn add @accurat/react-components
Usage
import { Button, Select, Checkbox } from '@accurat/react-components'
使用 tachyons 类轻松定制,如下所示:
<Button className="br-pill bg-blue hover-bg-dark-blue">Click</Button>
该组件被设计为可以 ,您还可以将 style
属性作为 prop
传递。
<Button style={{ backgroundColor: 'blue' }}>Click</Button>
Accurat React Components
Collection of React components used for Accurat projects.
The purpose is to provide ready-to-use, easily customizable UI components to set up web projects. They're also useful for quick prototypes.
Install
yarn add @accurat/react-components
Usage
import { Button, Select, Checkbox } from '@accurat/react-components'
The component is designed to be easily customizable using tachyons classes, like this:
<Button className="br-pill bg-blue hover-bg-dark-blue">Click</Button>
Alternatively, you can also pass a style
attribute as a prop
.
<Button style={{ backgroundColor: 'blue' }}>Click</Button>