Core Concepts
Content Management
Content Management
The Visual Editor
BasaltCMS introduces a unique "Block-Based" visual editor for creating rich content pages.
Block Schema
Every visual block implements a strict schema definition for type safety.
// Example Block Schema
const HeroBlock = {
type: "hero",
fields: {
title: { type: "text", required: true },
image: { type: "image_url" },
cta: {
type: "object",
structure: { label: "text", url: "text" }
}
},
render: (props) => <HeroComponent {...props} />
}
Hydration Strategy
To keep performance high:
<ClientOnly> wrappers for blocks that rely on window or document APIs.
