@djsp/atomic-block
Installation
@djsp/atomic-block
depends on @djsp/utils
which must also be installed.
npm install --save @djsp/utils @djsp/atomic-block
# or alternately
yarn add @djsp/utils @djsp/atomic-block
Usage
<EditorContainer>
<Editor />
<AtomicBlock type="IMAGE">
{(props) => <Image {...props} />}
</AtomicBlock>
<AtomicBlock type="VIDEO">
{(props) => <Video {...props} />}
</AtomicBlock>
</EditorContainer>