Primitives
Editor.TemplateGallery
Modal grid of starter templates.
Modal grid of starter templates.
Usage
import { Editor } from '@docmosaic/react';
<Editor.Root>
<Editor.TemplateGallery />
</Editor.Root>;API Reference
| Prop | Type | Default | Description |
|---|---|---|---|
| templates * | readonly TemplateGalleryItem[] | - | Templates to render
|
| onTemplateSelected | ((template: TemplateGalleryItem) => void) | undefined | - | Fired after the template has been applied via the editor's |
| className | string | undefined | - | Optional className wrapping the gallery grid. |
Related
- Root - the orchestrator