āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/adityakishore0/scrollx-ui/components/collapsible ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
<Step>Install the following dependencies:</Step> <DepsOptions name="framer-motion @radix-ui/react-collapsible" />
<Step>Copy and paste the following code into your project.</Step>
<p> <code>collapsible.tsx</code> </p> <ComponentSource name="collapsible" /> </Steps> </TabsContent> </Tabs>import {
Collapsible,
CollapsibleContent,
CollapsibleTrigger,
} from "@/components/ui/collapsible"
<Collapsible>
<CollapsibleTrigger>What is ScrollX UI?</CollapsibleTrigger>
<CollapsibleContent>
ScrollX UI is a collection of modern, animated, and customizable UI
components built for React and Next.js.
</CollapsibleContent>
</Collapsible>
An interactive component which expands/collapses a panel with a smooth motion.
<PropsTable rows={[ { prop: "asChild", type: "boolean", default: "false", description: "Render a custom component instead of the default element." }, { prop: "open", type: "boolean", default: "-", description: "Controls the open state of the collapsible." }, { prop: "defaultOpen", type: "boolean", default: "false", description: "Sets the initial open state." }, { prop: "onOpenChange", type: "(open: boolean) => void", default: "-", description: "Fires when the open state changes." }, { prop: "children", type: "React.ReactNode", default: "required", description: "Content inside the collapsible." }, { prop: "data-slot", type: "string", default: "-", description: "Internal attribute for styling/testing." } ]} />
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā