0.7.2

Stats0

Source code

Stats 0 is a versatile and highly customizable component designed to display statistical or numerical data in a visually structured and semantic way. It provides an organized interface for showcasing multiple stats with titles, descriptions, and optional styling classes.

132K
Downloads
24.8K
Stars
10.3K
Forks
48.4K
Users
---
import { Stats0 } from '@yatoday/astro-ui/astro';
---

<Stats0
  items={[
    { title: '132K', description: 'Downloads' },
    { title: '24.8K', description: 'Stars' },
    { title: '10.3K', description: 'Forks' },
    { title: '48.4K', description: 'Users' },
  ]}
/>

Props

PropTypeDefaultDescription
itemsArray[]Array of Item items
classes.containerstringtext-center w-full justify-centerControls the overall container styling.
classes.contentstringmd:border-r border-input md:last:border-noneAdjusts the content layout
classes.titlestringtext-primary text-3xl lg:text-5xl xl:text-6xlDefines the styling for stat titles
classes.descriptionstringfont-medium uppercase tracking-widest text-muted-foreground text-sm lg:text-baseSets the look and feel for the stat descriptions
classes.iconstringtext-primaryCustomizes the icon appearance.