Props for the AssetGallery component.
(assets: Asset[]) => voidboolean'auto' | 'manual'Defines whether multiple assets can be selected.
If set to 'auto', the asset selection will be toggled when the user clicks on an asset. If set to 'manual', multiple selection will occur only if the user holds down the control/cmd key.
Asset[]The initial assets that should be selected.
numberThe number of assets to display per page.
booleanWhether the gallery should have a fixed height.
booleanWhether the gallery should show a header.
stringThe class name to apply to the gallery.
(files: File[]) => voidThe function to call when files are dropped.
AssetBulkAction[]The bulk actions to display in the gallery.
booleanWhether the gallery should display bulk actions.
(pageSize: number) => voidThe function to call when the page size changes.
AssetViewModeThe current view mode for the gallery. Defaults to 'grid'.
(mode: AssetViewMode) => voidThe function to call when the view mode changes. When provided, a toggle will be rendered in the header bar.
Architecture reviews, custom plugin work, migrations, ongoing support. Get a hand from the team that builds Vendure.
Talk to the team