A professional disclosure component with smooth height transitions and clear Indigo focus states.
The outer boundary of an individual disclosure item with 12px corner radius.
The interactive header that toggles the panel visibility on click.
Chevron icon that rotates 180 degrees to indicate expansion state.
The collapsible area that reveals detailed information with smooth height transitions.
// ExperimentAccordion.tsx
const ExperimentAccordion = ({ items }) => (
<div className="border rounded-xl">
{items.map(item => (
<div className="border-t first:border-0">
<button className="flex justify-between w-full p-4">
<span>{item.label}</span>
<ChevronIcon />
</button>
<div className="overflow-hidden transition-all duration-300">
<div className="p-4">{item.content}</div>
</div>
</div>
))}
</div>
);