Skip to content

Document list ​

<sea-file-browser> lists source documents for the bound outputs. Use view="list" and selection-only to make it a selector beside data and source viewers.

IntegrationEntry
ReactSeaFileBrowser from @sea-dev/widget-lit/react/file-browser
Without React@sea-dev/widget-lit/file-browser
html
<sea-file-browser
  step-label="data"
  view="list"
  selection-only
></sea-file-browser>

Place it inside a process and Sea context, with the page API host configured before mounting. It shares the selected output and document with sibling widgets. When a document belongs to several matching outputs, choose an output first. Without selection-only, opening a file displays its preview in a dialog.

Attributes and properties ​

PropertyAttributeTypeDefaultDescription
stepLabelstep-labelstring or undefined—Selects one step by its unique pipeline label within the enclosing process.
stepRolestep-rolePipelineStepRoleWire or undefined—Constrains the selected step to this execution role.
stepIdstep-idstring or undefined—Selects a pipeline step definition within the enclosing process.
runStepIdrun-step-idstring or undefined—Selects one executable step instance within the enclosing process.
outputFormIdoutput-form-idstring or undefined—Narrows the selected step's outputs to this form.
outputSubmissionIdoutput-submission-idstring or undefined—Selects an exact output submission from the enclosing process.
workerUrlworker-urlstring""Sets the PDF.js worker URL for document previews.
viewviewBrowserView"icon"Selects the document list or icon grid.
selectionOnlyselection-onlybooleanfalseSelects documents for sibling viewers without opening a preview overlay.

Events ​

EventTypeDescription
citation-selectedCustomEvent{ citationId, documentExtractionId } when a document is selected.
file-actionCustomEvent{ action, file } after a supported file action.
file-openedCustomEvent{ file } containing the selected backend document.

Styling parts ​

PartDescription
rootThe document browser container.
toolbarThe document heading and view controls.
contentThe scrollable document area.
listThe document list or grid.
itemAn individual document.
statusLoading, empty and error messages.

Use a host class to set the panel's width and height. Layout and parts covers CSS Grid, tokens and ::part().