Template
Initial react editor Next.js template
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import type { ComponentConfig } from '@reacteditor/core';
|
||||
import { SquareDashed } from 'lucide-react';
|
||||
import Starter, { type StarterProps } from './starter';
|
||||
|
||||
const starterConfig: ComponentConfig<StarterProps> = {
|
||||
label: 'Starter',
|
||||
icon: <SquareDashed size={16} />,
|
||||
category: 'content',
|
||||
defaultProps: {
|
||||
logoUrl: '/next.svg',
|
||||
message: 'To edit this page navigate to /editor.',
|
||||
},
|
||||
fields: {
|
||||
logoUrl: { label: 'Logo', type: 'image' },
|
||||
message: { label: 'Message', type: 'text', contentEditable: true },
|
||||
},
|
||||
render: (props) => <Starter {...props} />,
|
||||
};
|
||||
|
||||
export default starterConfig;
|
||||
Reference in New Issue
Block a user