--- import Subheader from '@ui/Subheader.astro' import Icon from '@ui/Icon.astro' import Trending from '@ui/Trending.astro' interface Props { color?: string icon?: string /** lt — light avatar background (bg-{color}-lt) instead of bg-{color} text-white */ lt?: boolean title?: string description?: string /** change-value — passed to Trending (keeps its +/- sign) */ changeValue?: string /** change-value-unit — trending unit; defaults to '%' in Trending when unset */ changeValueUnit?: string class?: string } const { color, icon, lt, title = '1700', description = 'Users', changeValue, changeValueUnit, class: className } = Astro.props const avatarClass = [color ? `bg-${color}${lt ? '-lt' : ' text-white'}` : '', 'avatar', 'avatar-square'] ---
{ icon && (
) }
{title}
{description}