@7shifts/sous-chef 中文文档教程
@7shifts/sous-chef
7shifts 组件库
Install
yarn add @7shifts/sous-chef
或者
npm install --save @7shifts/sous-chef
Usage
import React, { Component } from 'react';
import { ResourceTable } from '@7shifts/sous-chef';
import '@7shifts/sous-chef/dist/index.css';
class Example extends Component {
items = [
{
employeeName: 'Steve Lawrence',
date: 'Jun 22, 2019',
hours: 15,
},
{
employeeName: 'Alex Andrade',
date: 'Jan 15, 2020',
hours: <span style={{ color: 'red' }}>8</span>,
},
];
render() {
return <ResourceTable items={items} />;
}
}
Documentation
您可以在 中找到组件文档这里。 只是为了触发 CI
License
MIT © 7shifts
@7shifts/sous-chef
The 7shifts component library
Install
yarn add @7shifts/sous-chef
or
npm install --save @7shifts/sous-chef
Usage
import React, { Component } from 'react';
import { ResourceTable } from '@7shifts/sous-chef';
import '@7shifts/sous-chef/dist/index.css';
class Example extends Component {
items = [
{
employeeName: 'Steve Lawrence',
date: 'Jun 22, 2019',
hours: 15,
},
{
employeeName: 'Alex Andrade',
date: 'Jan 15, 2020',
hours: <span style={{ color: 'red' }}>8</span>,
},
];
render() {
return <ResourceTable items={items} />;
}
}
Documentation
You can find the components documentation in here. just to trigger a CI
License
MIT © 7shifts