diff --git a/src/components/blocks/StatsBlock.tsx b/src/components/blocks/StatsBlock.tsx index 452eb4c..0bbcfd8 100644 --- a/src/components/blocks/StatsBlock.tsx +++ b/src/components/blocks/StatsBlock.tsx @@ -64,6 +64,12 @@ const paddingMap: Record = { lg: 'py-ws-l', } +const iconAlignmentMap: Record = { + left: 'text-left', + center: 'text-center', + right: 'text-right', +} + function CountUpValue({ target, duration, prefix, suffix, fallback }: { target: number duration: number @@ -129,6 +135,7 @@ export function StatsBlock({ block }: StatsBlockProps) { const valueSize = (style.valueSize as string) || 'xl' const valueWeight = (style.valueWeight as string) || 'bold' const showIcon = style.showIcon !== false + const iconAlignment = (style.iconAlignment as string) || 'left' const dividers = Boolean(style.dividers) const gap = (style.gap as string) || '32' const padding = (style.padding as string) || 'md' @@ -197,7 +204,11 @@ export function StatsBlock({ block }: StatsBlockProps) { )} > {showIcon && lucideIcon && ( -
+
)}