Skip to content
GaudiGaudi Design System home

Search documentation

Search every page, heading and paragraph.

ChatFileExplorer

A searchable file hierarchy for shared files, uploads and agent outputs, built on Core Tree.

Chat@gaudi/design-system/chat/ChatFileExplorerView in StorybookSource

Installation

pnpm add github:ahmadassaf/design-system

Import from @gaudi/design-system. Load @gaudi/design-system/global.css once and add transpilePackages: ['@gaudi/design-system'] in Next.js.

import { ChatFileExplorer } from '@gaudi/design-system/chat/ChatFileExplorer';

Usage

import { ChatFileExplorer } from '@gaudi/design-system/chat';
<ChatFileExplorer items={files} defaultExpanded={['shared']} selectedId={selectedId} onSelect={selectFile} onPreview={previewFile} onRefresh={refreshFiles} />

Examples

Playground

Storybook

Controlled Selection

Storybook

Live file updates

Storybook

Loading

Storybook

Error And Retry

Storybook

Empty

Storybook

Empty folders

Storybook

API

18 props

Accessibility

Core Tree provides arrow navigation; Enter or Space selects files. Row actions are named and keyboard reachable. Search preserves folder context and announces matches.