Initial commit
This commit is contained in:
20
components/hero/hero.config.tsx
Normal file
20
components/hero/hero.config.tsx
Normal file
@@ -0,0 +1,20 @@
|
||||
import { ComponentConfig } from "@reacteditor/core";
|
||||
import { LayoutTemplate } from "lucide-react";
|
||||
import { Hero, type HeroProps } from "@/components/hero/hero";
|
||||
|
||||
const heroConfig: ComponentConfig<HeroProps> = {
|
||||
label: "Hero",
|
||||
icon: <LayoutTemplate size={16} />,
|
||||
category: "hero",
|
||||
defaultProps: {
|
||||
title: "Enter title",
|
||||
subtitle: "Enter your subtitle here...",
|
||||
},
|
||||
fields: {
|
||||
title: { label: "Title", type: "text", contentEditable: true },
|
||||
subtitle: { label: "Subtitle", type: "textarea", contentEditable: true },
|
||||
},
|
||||
render: (props) => <Hero {...props} />,
|
||||
};
|
||||
|
||||
export default heroConfig;
|
||||
Reference in New Issue
Block a user