An open API service indexing awesome lists of open source software.

https://github.com/sirwanafifi/tw-tr

React Tree View Component built on top of TailwindCSS/TypeScript/Context API
https://github.com/sirwanafifi/tw-tr

component context-api react recursive storybook tailwindcss treeview typescript

Last synced: about 1 year ago
JSON representation

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

Awesome Lists containing this project

README

          

## TailwindCSS Tree View

React Tree View Component built on top TailwindCSS/TypeScript.



## Example

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

},
{
"title": "Child2-2",
"children": []
}
]
}
}
]
}
```

```tsx
export const Default = () => {
return (




);
};
```

## Running the project

```js
yarn
yarn build:tailwind
yarn storybook
```

## Dependencies

- tailwindcss
- @headlessui/react
- typescript