Skip to content
HomePagesHomePages template kit

SectionMeta

Zod schema for a section's `meta`: presentation and structural facts kept separate from the content `slots` — display name, in-page anchor id, sidebar `groups`, and the `display` block owning section visibility and variant.

Zod schema for a section’s meta: presentation and structural facts kept separate from the content slots — display name, in-page anchor id, sidebar groups, and the display block owning section visibility and variant.

Import from @homepages/template-kit.

const SectionMeta: z.ZodObject<{ displayName: z.ZodString; anchor: z.ZodOptional<z.ZodString>; groups: z.ZodOptional<z.ZodArray<z.ZodObject<{ id: z.ZodString; label: z.ZodString; members: z.ZodArray<z.ZodUnion<readonly [z.ZodString, z.ZodTuple<[z.ZodString, z.ZodString], null>]>>; }, z.core.$strict>>>; display: z.ZodOptional<z.ZodType<DisplayShape, DisplayShape, z.core.$ZodTypeInternals<DisplayShape, DisplayShape>>>; }, z.core.$strict>