simple-effing-diagram

1.0.3 • Public • Published

simple-effing-diagram

Simple f*cking diagram for React.
Lightweight, customizable and super fast.


Made by Julian Gumenita

Features

Getting started

# via yarn
yarn add simple-effing-diagram

# via npm
npm install --save simple-effing-diagram

Usage

import { Box } from "simple-effing-primitive-layout";

ReactDOM.render(
  <Diagram
    items={{
      _id: "634971ca11220d3efaae3858",
      name: "Luxury Hotel",
      items: [
        {
          _id: "634971d460a07fa809417821",
          name: "F&B Department",
          items: [
            {
              _id: "634971d82e77cebaa9ec1163",
              name: "Greeters",
            },
            {
              _id: "634971ddccbf37ce8d36a633",
              name: "In Chares",
            },
            {
              _id: "634971e1dc3e2787707dee81",
              name: "Sun Restourant",
              items: [
                { _id: "634971e6a40ed1f38d2edd44", name: "Servers" },
                { _id: "634971ea1f7ccbc0fe98e242", name: "Servers" },
              ],
            },
            {
              _id: "634971eea4c8c677e3aa819e",
              name: "Moon Restourant",
              items: [
                {
                  _id: "634971f2ac7fb68761a84b20",
                  name: "Assistant Servers",
                },
              ],
            },
            {
              _id: "634971f6955d1c8397e94414",
              name: "Bars",
              items: [{ _id: "634971fac7120b12e59dcb1e", name: "Mixologists" }],
            },
          ],
        },
      ],
    }}
  />,
  document.getElementById("root")
);

Package Sidebar

Install

npm i simple-effing-diagram

Weekly Downloads

0

Version

1.0.3

License

ISC

Unpacked Size

3.35 MB

Total Files

74

Last publish

Collaborators

  • juliangumenita