React Tree View Component built on top TailwindCSS/TypeScript.
{
"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>
);
};
yarn
yarn build:tailwind
yarn storybook
- tailwindcss
- @headlessui/react
- typescript