Fejlesztőknek
Kezdj bele
Témák/Theme SDK/Modules/editor/Parts

Parts

Ez az oldal még csak angolul érhető el.

The parts of @poltura/theme-sdk/editor.

Ezen az oldalon
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 | null

Example

import { SectionDropArea } from '@poltura/theme-sdk/editor';
import { Slot, useChildBlocks } from '@poltura/theme-sdk/elements';

export function Canvas() {
  return useChildBlocks().length > 0 ? <Slot /> : <SectionDropArea />;
}
Utoljára frissítve