Skip to content

React Tree View Component built on top of TailwindCSS/TypeScript/Context API

License

Notifications You must be signed in to change notification settings

SirwanAfifi/tw-tr

Repository files navigation

TailwindCSS Tree View

React Tree View Component built on top TailwindCSS/TypeScript.

Example

{
  "title": "root",
  "children": [
    {
      "title": "Child1",
      "children": [
        {
          "title": "Child2",
          "children": [
            {
              "title": "Child2-1",

            },
            {
              "title": "Child2-2",
              "children": []
            }
          ]
        }
    }
  ]
}
export const Default = () => {
  return (
    <ContextMenuProvider>
      <ContextMenu />
      <Tree root={data} />
    </ContextMenuProvider>
  );
};

Running the project

yarn
yarn build:tailwind
yarn storybook

Dependencies

  • tailwindcss
  • @headlessui/react
  • typescript

About

React Tree View Component built on top of TailwindCSS/TypeScript/Context API

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published