{{/* Templates: */}} {{/* details-header */}} {{/* details-body */}} {{/* Props: */}} {{/* Open: bool Name:
name attribute GroupName: for doing 'open' css state styles Smooth: bool, for 'smooth' opening animation, true by default Class, Style, SummaryClass, SummaryStyle */}} {{/* TODO: find a way to not have to hardcode the tailwind classes for the group-open styles */}} {{/* TODO: rename this component to 'accordion' */}} {{- $groupSuffix := "" }} {{- if .GroupName }} {{- $groupSuffix = printf "/%s" .GroupName }} {{- end }} {{- $smooth := ne .Smooth false }}
{{/* TODO: old border style - delete when sure details-content:border-transparent open:details-content:border-dotted open:details-content:border-x-[0px] open:details-content:border-x-transparent open:details-content:border-b-[0px] open:details-content:border-b-transparent open:details-content:border-t-background open:details-content:border-t-[0.25rem] details-content:outline-transparent */}} {{ slot "accordion-header" }} {{ slot "accordion-body" }}