"use client"; import { RenderComponentWithSnippet } from "@/app/components/render"; import { useState } from "react"; import { Switch } from "@calcom/ui/components/form"; import { Section } from "@calcom/ui/components/section"; export const BasicExample = () => { const [isOpen, setIsOpen] = useState(true); return ( {isOpen && ( This is the main content of the section. )} ); }; export const BasicExampleSnippet = ` "use client"; import { useState } from "react"; import { Section } from "@calcom/ui/components/section"; import { Switch } from "@calcom/ui/components/form"; const BasicSection = () => { const [isOpen, setIsOpen] = useState(true); return ( {isOpen && ( This is the main content of the section. )} ); }; `;
This is the main content of the section.