Template
Initial react editor Next.js template
This commit is contained in:
@@ -0,0 +1,21 @@
|
||||
import type { RootConfig } from '@reacteditor/core';
|
||||
|
||||
export type RootProps = {
|
||||
title?: string;
|
||||
description?: string;
|
||||
};
|
||||
|
||||
export const Root: RootConfig<{ props: RootProps }> = {
|
||||
global: false,
|
||||
defaultProps: {
|
||||
title: 'Next.js Editor Starter',
|
||||
description: 'A minimal Next.js template powered by React Editor.',
|
||||
},
|
||||
fields: {
|
||||
title: { label: 'Page title', type: 'text' },
|
||||
description: { label: 'Meta description', type: 'textarea' },
|
||||
},
|
||||
render: ({ children }) => <>{children}</>,
|
||||
};
|
||||
|
||||
export default Root;
|
||||
Reference in New Issue
Block a user