--- /** * ProcessSteps * Visuele stappen-sectie: hoe werkt het, onboarding, werkwijze. * * Props: * - headline?: string * - sub?: string * - steps: Array<{ title: string; body: string; icon?: string }> * - layout?: 'horizontal' | 'vertical' */ interface Props { headline?: string; sub?: string; steps: { title: string; body: string; icon?: string }[]; layout?: 'horizontal' | 'vertical'; } const { headline, sub, steps, layout = 'horizontal' } = Astro.props; --- {(headline || sub) && ( {headline && {headline}} {sub && {sub}} )} {steps.map((step, i) => ( {step.icon ?? String(i + 1).padStart(2, '0')} {layout === 'horizontal' && i < steps.length - 1 && ( )} {step.title} {step.body} ))}
{sub}
{step.body}