āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā ā š shadcn/directory/adityakishore0/scrollx-ui/components/statscarousel ā āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
<Step>Install the following dependencies:</Step> <DepsOptions name="framer-motion" />
<Step>Copy and paste the following code into your project.</Step>
<p> <code>statscarousel.tsx</code> </p> <ComponentSource name="statscarousel" /> </Steps> </TabsContent> </Tabs>import StatsCarouselcount from "@/components/ui/statscarousel";
<StatsCarouselcount
title="CREATE STUNNING INTERFACES WITH SCROLLX UI COMPONENTS"
stats={[
{ value: 40, suffix: "+", label: "Handcrafted animated components" },
{ value: 12, suffix: "K+", label: "Developers building with ScrollX UI" },
{ value: 99, suffix: "%", label: "Performance optimized for web" },
]}
className=""
cardClassName=""
/>
<Step>Drag</Step>
<ComponentPreview name="statscarouseldrag-demo" className="p-0" description="" />
Animated number stack for next-gen websites in stacked carousel.
<PropsTable rows={[ { prop: "stats", type: "{ value: number; suffix?: string; label: string; id?: number; }[]", default: "optional", description: "Array of stats with value, suffix (like %, K+), label, and optional id.", }, { prop: "animation", type: '"drag" | auto', default: "auto", description: 'If set to "drag", enables draggable top card mode instead of automatic stacked animation.', }, { prop: "title", type: "string", default: "optional", description: "Optional title shown above the carousel cards.", }, { prop: "className", type: "string", default: '""', description: "Additional classes for the outer wrapper section.", }, { prop: "cardClassName", type: "string", default: '""', description: "Additional classes for styling individual stat cards.", }, ]} />
ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā ā
āāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāāā