Parts
The parts of @poltura/theme-sdk/editor.
On this page
import { … } from '@poltura/theme-sdk/editor';SectionDropArea
The editor's drop area for a section with no elements yet, where the merchant adds the first one; nothing outside the editor.
SectionDropArea(): ReactElement | nullExample
import { SectionDropArea } from '@poltura/theme-sdk/editor';
import { Slot, useChildBlocks } from '@poltura/theme-sdk/elements';
export function Canvas() {
return useChildBlocks().length > 0 ? <Slot /> : <SectionDropArea />;
}