0.0.2 • Published 3 years ago

@sous-chef/ui v0.0.2

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

sous-chef/ui

Made with create-react-library

NPM

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

0.0.2

3 years ago

0.0.1

3 years ago