How to use chonky - 5 common examples

To help you get started, we’ve selected a few chonky examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github TimboKZ / Chonky / docs / components / Files.js View on Github external
const ExampleComponent = () => ;
export default ExampleComponent;
github TimboKZ / Chonky / docs / components / FullDemo.js View on Github external
let currentFolder = folder;
            while (currentFolder) {
                folderChain.unshift(currentFolder);
                const parentId = currentFolder.parentId;
                currentFolder = parentId ? this.fileMap[parentId] : null;
            }
            if (folder.childrenIds) {
                files = folder.childrenIds.map(id => this.fileMap[id]);
            }
        }

        return <div style="{{height:">
            
        </div>;
    }
github TimboKZ / Chonky / docs / components / Thumbnails.js View on Github external
const ExampleComponent = () =&gt; ;
export default ExampleComponent;
github TimboKZ / Chonky / docs / components / Selection.js View on Github external
render() {
        const {files, selectionSize} = this.state;

        return <div>
            <div style="{sizeStyle}">
                <button style="{sizeStyle}">Select random files</button>
                &nbsp;
                <span>Number of selected files: {selectionSize}</span>
            </div>
            <br>

            
        </div>;
    }
}

chonky

A File Browser component for React

MIT
Latest version published 3 years ago

Package Health Score

50 / 100
Full package analysis

Popular chonky functions