--- /** * TimelineSection - Alternating timeline layout * * Usage: * ```astro * * ``` */ export interface TimelineItem { badge: string; title: string; text: string; } interface Props { title: string; subtitle?: string; items: TimelineItem[]; class?: string; } const { title, subtitle, items, class: className = '' } = Astro.props; --- {title} {subtitle && {subtitle}} { items.map((item, index) => ( {item.badge} {item.title} {item.text} )) }
{subtitle}
{item.text}