update components

This commit is contained in:
Rami Bitar
2026-06-06 14:21:55 -04:00
parent ed346476e5
commit ef9e10256d
60 changed files with 85 additions and 1035 deletions

View File

@@ -0,0 +1,33 @@
import { ComponentConfig } from "@reacteditor/core";
import { FolderOpen } from "lucide-react";
import { CollectionGrid, type CollectionGridProps } from "@/components/shopify/collection-grid";
const collectionGridEditor: ComponentConfig<CollectionGridProps> = {
label: "Collections",
icon: <FolderOpen size={16} />,
category: "commerce",
defaultProps: {
tagline: "Shop by collection",
heading: "Curated edits",
subheading: "Bundles built around the way you actually live.",
layout: "tiles",
limit: 6,
},
fields: {
tagline: { label: "Tagline", type: "text", contentEditable: true },
heading: { label: "Heading", type: "text", contentEditable: true },
subheading: { label: "Subheading", type: "textarea", contentEditable: true },
layout: {
label: "Layout",
type: "radio",
options: [
{ label: "Tiles", value: "tiles" },
{ label: "Editorial", value: "editorial" },
],
},
limit: { label: "Limit", type: "number", min: 2, max: 12 },
},
render: (props) => <CollectionGrid {...props} />,
};
export default collectionGridEditor;