File Storage Trash Restore
Trash with restore and permanent delete.
Choose the primitives library your project already uses. Both look the same: your theme, not the variant, controls colors, shape, type and motion.
About this page
What it's for
- Trash with restore and permanent delete.
- Recoverable archived items.
- Inbox of deleted items.
Includes
- Soft delete
- Restore action
- Permanent delete
- Retention notice
- Empty state
Works with
- Radix UI and Base UI primitives (pick the one your project uses)
- React 19, Next.js App Router and Tailwind CSS 4, installed with the shadcn CLI
- Your theme tokens, in light and dark mode
- 1 template or blueprint on this site use it (below)
Install
Included with Agentic UI Kit (one-time license). Install needs your license key: see pricing · connect your project.
Agentic UI CLI
agentic-ui add file-storage-trash-restoreInstalls through shadcn and adapts the component to your design tokens.
shadcn CLI
npx shadcn@4.17.0 add @agentic-ui/file-storage-trash-restoreUsed in
- Type
- Page
- Variants
- Radix UI and Base UI
- Themes
- Light and dark
- Widths
- Preview it at desktop, tablet and mobile widths above.
- Sample data
- Ships with sample data in
stashbox.ts; replace it with your own.
- npm packages
lucide-reactzustand- Registry dependencies
lib-file-storage-utilsui-badgeui-button- Files
4 files
- components/templates/file-storage/app/(stashbox)/trash/page.tsx
- components/templates/file-storage/store/stashbox-store.ts
- components/templates/file-storage/mock-data/stashbox.ts
- components/templates/file-storage/components/stashbox/file-icon.tsx
Related components
File Storage Collection Detail
Detail of a collection with its files.
Details and live previewFile Storage Collections Grid
Grid of asset collections.
Details and live previewFile Storage Overview Dashboard
Post-production home of a film studio's shared drive.
Details and live previewFile Storage Recent Files
Recent files grouped by age.
Details and live preview