0.0.2 • Published 3 years ago
@sous-chef/ui v0.0.2
sous-chef/ui
Made with create-react-library
Install
yarn add @sous-chef/ui
or
npm install --save @sous-chef/ui
Usage
import React, { Component } from 'react';
import { ResourceTable } from '@sous-chef/ui';
import '@sous-chef/ui/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} />;
}
}
License
MIT © 7shifts