--- interface FaqItem { q: string; a: string; } interface Props { items: FaqItem[]; } const { items } = Astro.props; const groupId = `faq-${Math.random().toString(36).slice(2, 8)}`; ---
{items.map((item, idx) => { const inputId = `${groupId}-${idx}`; return (

{item.q}

{item.a}
); })}