TreeSelect component #1051
Replies: 13 comments 21 replies
-
Those are the only 2 essential components for a UI library that are still missing. We're planning migration to Mantine but can't do it without a TreeSelect of some sort. Do you have any plans on implementing this for the next major release? |
Beta Was this translation helpful? Give feedback.
-
@rtivital Let me know if you require any help. I need this component. |
Beta Was this translation helpful? Give feedback.
-
I'm also interested in this. For info of anyone looking for a solution right now, it could be worth looking at this https://github.com/minop1205/react-dnd-treeview It seems to be quite fully featured, and there are CodeSandbox samples for various use cases including select. The samples use Material-UI, but the module doesn't depend on it, so it's possible to get it working with Mantine. |
Beta Was this translation helpful? Give feedback.
-
Yes, that would be cool ! I'm waiting =) There are already groups now, it would be great if the list could collapse. |
Beta Was this translation helpful? Give feedback.
-
Is this still planned for an upcoming release (including v5)? |
Beta Was this translation helpful? Give feedback.
-
I'm looking forward to this feature as well! |
Beta Was this translation helpful? Give feedback.
-
FYI I ended up building my own using react-dnd-treeview. It ended up playing well with mantine |
Beta Was this translation helpful? Give feedback.
-
Also looking for one with checkboxes, something like this from antd: https://codesandbox.io/s/h3ny7f?file=/index.tsx |
Beta Was this translation helpful? Give feedback.
-
Is this still on the roadmap? It would be really useful to have a checkable tree select component similar to Ant Design: https://ant.design/components/tree-select |
Beta Was this translation helpful? Give feedback.
-
please integrated https://www.npmjs.com/package/rc-tree-select |
Beta Was this translation helpful? Give feedback.
-
We are doing an evaluation on migrating our UI components, so far Mantine is our most preferred choice, but a direct implementation of tree select would be much appreciated!! Hopefully we will get to see this component to be released soon. |
Beta Was this translation helpful? Give feedback.
-
This is my custom component, hop this help: interface TreeItem { interface TreeMultiSelectProps { export function TreeMultiSelect({ const [search, setSearch] = useState('')
}) const flattenedOptions = useMemo(() => {
}, [data, expandedNodes]) const handleValueSelect = (val: string) => { const handleValueRemove = (val: string) => { const toggleNode = (nodeId: string) => { const values = value.map((val) => { const filteredOptions = flattenedOptions.filter((option) => return (
) |
Beta Was this translation helpful? Give feedback.
-
Usage example, including component/hook API
https://github.com/react-component/tree
https://github.com/react-component/tree-select
Possible implementation – describe how the feature can be implemented
No response
Do you want to contribute this feature and create a pull request
No response
Beta Was this translation helpful? Give feedback.
All reactions