Skip to content

Installation

React

bash
npm install @document-explorer/react
tsx
import { DocumentExplorer } from '@document-explorer/react';
import '@document-explorer/react/styles.css';

export function Documents({ files }) {
  return <DocumentExplorer data={files} search selection />;
}

Requires React 18 or later. React and react-dom are peer dependencies.

Angular

bash
npm install @document-explorer/angular
ts
import { Component } from '@angular/core';
import { DocumentExplorerComponent } from '@document-explorer/angular';

@Component({
  selector: 'app-documents',
  standalone: true,
  imports: [DocumentExplorerComponent],
  template: `<doc-explorer [data]="files" [search]="true" [selection]="true" />`,
})
export class DocumentsComponent {
  files = [];
}

Add the stylesheet once, in angular.json:

json
"styles": ["@document-explorer/angular/styles.css", "src/styles.css"]

Requires Angular 17 or later. The component is standalone, OnPush and signal-driven, so it works zoneless.

Anything else

The engine is framework-free and useful on its own — see the core API.

bash
npm install @document-explorer/core

Sizing the explorer

The component fills its container and scrolls its content area internally. Give it a height:

css
.my-explorer {
  height: 480px;
}
tsx
<DocumentExplorer data={files} className="my-explorer" />

Released under the MIT License.