--- /** * ============================================================ * SVGarden — https://www.svgarden.dev * Author : Simon-Pierre Boucher * Contact: contact@spboucher.ai * File : src/components/Customizer.astro * Desc : Auto-generated controls from frontmatter — live preview + code rewrite * ============================================================ */ interface Control { var: string; label: string; type: 'color' | 'range'; default: string | number; min?: number; max?: number; step?: number; unit?: string; } interface Props { controls: Control[]; } const { controls } = Astro.props; const cssValue = (c: Control) => `${c.default}${c.unit ?? ''}`; ---