Component libraryFile browser
File browser
ProA controlled file-library block with native path navigation, search, sorting, row selection and consumer-owned detail content.
npx shadcn@latest add @tidal-pro/file-browserInstallation
Pro source is gated. Configure the @tidal-pro registry using the agent guide. Create an access key from your account after purchasing.
Terminal
Import components/ui/tidal.css, components/ui/file-browser.css, then add the component inside a tidal-scope wrapper. Its scoped design tokens keep it independent of your existing CSS.
Usage
Complete example source · Dependency and asset manifest
Loading the complete example…
API & behavior
title, consumer-owned path and items are required. Path items support current, disabled, native href or composed native button navigation. Rows describe file or folder kind, accessibleName, ReactNode name/subtitle/size/modified/meta/icon, ISO dateTime, controlled selected state, disabled state, optional native href, row/link/button/selection attributes and refs. Optional controlled search and sort controls compose caller native handlers before higher callbacks; preventDefault suppresses the higher callback. Optional onSelectionChange and onOpenItem expose the original item and native event. labels, headingLevel, eyebrow, description, detail, detailLabel, emptyMessage, footer, native section attributes/ref and labelling remain consumer-owned. Links preserve modified-click behavior unless a consumer intercepts an unmodified primary click. The block performs no filesystem, upload, request, storage, route or persistence action.
Style with the --t-* CSS variables. Set data-theme="dark" on your tidal-scope wrapper for a dark surface. Motion respects the system’s reduced-motion preference.