Skip to content

The Open Standard for Generative UI

479 B
Raw Blame
"use client";

import { defineComponent } from "@openuidev/react-lang";
import { z } from "zod/v4";
import { SectionContentChildUnion } from "../sectionContentUnion";

export const SectionItem = defineComponent({
  name: "SectionItem",
  props: z.object({
    value: z.string(),
    trigger: z.string(),
    content: z.array(SectionContentChildUnion),
  }),
  description: "Section with a label and collapsible content — used inside SectionBlock",
  component: () => null,
});