0.0.3 • Published 9 months ago

@eschool/components v0.0.3

Weekly downloads
-
License
MIT
Repository
github
Last release
9 months ago

eSchool platform

eSchool website UI Components.

📦 Installation

npm install @eschool/components

🚀 Usage

import React from "react";
import { Tree } from "@eschool/components";
import "@eschool/components/styles/global.css"; // CSS file

const treeData = [
  {
    title: "Root",
    key: "0",
    children: [
      { title: "Child 1", key: "0-0" },
      { title: "Child 2", key: "0-1" },
    ],
  },
];

const App = () => {
  return <Tree treeData={treeData} />;
};

export default App;

🔧 Compatibility

  • This project works with React version 18.2.0.

⌨️ Development

Git Clone

git clone https://github.com/eschoolmn/components.git

🏗Build

npm run build

✨Version update

npm version patch  # Small fixes
npm version minor  # New features
npm version major  # Breaking changes

🌍Publish Public

npm publish --access public

📜 License

Distributed under the MIT License.