Sha256: 63998b530d4e041829c7c11ed91a8d5d30e8c9ce2ad0848ffb04d50501d8443d
Contents?: true
Size: 643 Bytes
Versions: 13
Compression:
Stored size: 643 Bytes
Contents
import React from "react" import DropdownTreeSelect from "react-dropdown-tree-select" import "react-dropdown-tree-select/dist/styles.css" type HelperProps = { id?: string treeData?: { [key: string]: string }[] onChange?: () => {} } const MultiSelectHelper = (props: HelperProps) => { const { id, treeData, onChange } = props return ( <DropdownTreeSelect data={treeData} id={id} keepOpenOnSelect keepTreeOnSearch keepChildrenOnSearch onChange={onChange} texts={{ placeholder: "Select..." }} mode='hierarchical' /> ) } export default MultiSelectHelper
Version data entries
13 entries across 13 versions & 1 rubygems