import { Type, createBlock } from "camox/createBlock"; const testimonial = createBlock({ id: "testimonial", title: "Testimonial", description: "Display a customer testimonial or user review. Ideal for building trust and social proof.", content: { quote: Type.String({ default: "This platform has transformed how we build and manage our website. The developer experience is exceptional.", title: "Quote", }), author: Type.String({ default: "Kai Doe", title: "Author" }), title: Type.String({ default: "Senior Developer", title: "Title" }), company: Type.String({ default: "E Corp", title: "Company" }), }, component: TestimonialComponent, toMarkdown: (c) => [`> ${c.quote}`, `— ${c.author}, ${c.title}, ${c.company}`], }); function TestimonialComponent() { return (
{(props) => (
"{props.children}"
)}
{(props) => ( )}
{(props) => } {(props) => }
); } export { testimonial as block };