polotno
v2.39.1
Published
Design Editor Framework
Downloads
71,024
Maintainers
Readme
Polotno
Build modern image and video editing apps with a powerful, flexible SDK.
Installation
npm install polotnoQuick Start
import React from 'react';
import { PolotnoContainer, SidePanelWrap, WorkspaceWrap } from 'polotno';
import { Toolbar } from 'polotno/toolbar/toolbar';
import { ZoomButtons } from 'polotno/toolbar/zoom-buttons';
import { SidePanel } from 'polotno/side-panel';
import { Workspace } from 'polotno/canvas/workspace';
import { createStore } from 'polotno/model/store';
const store = createStore({
key: 'YOUR_API_KEY', // get your key at https://polotno.com/cabinet
showCredit: true,
});
store.addPage();
export const App = () => {
return (
<PolotnoContainer style={{ width: '100vw', height: '100vh' }}>
<SidePanelWrap>
<SidePanel store={store} />
</SidePanelWrap>
<WorkspaceWrap>
<Toolbar store={store} />
<Workspace store={store} />
<ZoomButtons store={store} />
</WorkspaceWrap>
</PolotnoContainer>
);
};License
See licensing details at polotno.com.
