Launch sale — 60% off Pro
Contact
DrawerLeft

Not affiliated with official shadcn/ui. Visit ui.shadcn.com for official docs.

React Left Drawer File Explorer

A left drawer file explorer with expandable folders using Folder and File icons, ChevronRight rotation, and nested structure

Looking to implement shadcn/ui patterns?

Join our Discord community for help from other developers.


File trees need intuitive navigation—folder expansion reveals hierarchy naturally. This React left drawer creates file explorer using shadcn/ui Drawer featuring Folder and File icons from Lucide React with expandable folder state tracked in useState. Built with ml-4 nesting, size-sm buttons, and ChevronRight rotation showing expand state. The file explorer pattern improves file management—perfect for document apps, code editors, cloud storage, or anywhere hierarchical file structures need browsable drawer interface mimicking desktop file managers.

Pattern created by @haydenbleasel

Installation

Questions you might have