Skip to content

AssetItem

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:27

A single entry shown in the current folder (file OR sub-folder).

Properties

assetType?

optional assetType: AssetType

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:35

Consumer-defined category; drives the fallback icon and the type filter.


disabled?

optional disabled: boolean

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:53

Dim + non-interactive.


draggable?

optional draggable: boolean

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:49

Default true. When false, the item cannot be dragged.


droppable?

optional droppable: boolean

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:51

Default: true for folders, false for files. Can items be dropped onto it?


icon?

optional icon: ReactNode

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:39

Explicit icon override (files without a thumbnail, and folders).


id

id: string

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:29

Stable unique id within the browser.


kind

kind: AssetKind

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:33

Drives navigation vs. open behaviour.


meta?

optional meta: Record<string, unknown>

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:45

Arbitrary consumer payload (dimensions, tags, GUID, …).


modifiedAt?

optional modifiedAt: number | Date

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:43

Last-modified timestamp — feeds the list “Modified” column and date sort.


name

name: string

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:31

Display name.


selectable?

optional selectable: boolean

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:47

Default true. When false, the item cannot be selected.


size?

optional size: number

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:41

Size in bytes — feeds the list “Size” column and size sort.


thumbnailUrl?

optional thumbnailUrl: string

Defined in: src/components/editor/AssetBrowser/AssetBrowser.types.ts:37

Image thumbnail URL for grid view.