AccordionItem
An accordion item is a section of content in accordion component.
AccordionItemBosons
Title
Title for item button.
type:
string
Id
Id of item.
type:
string
default:
1
Collapse
Collapse variant.
type:
bool
default:
false
Open
Is item is open.
type:
bool
default:
false
Examples
Default accordion item
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Vivamus placerat molestie turpis, sit amet molestie felis vestibulum et. Pellentesque habitant morbi tristique senectus et netus et malesuada fames ac turpis egestas.
1// Example of default accordion item
2
3@atoms.AccordionItem(&atoms.AccordionItemBosons{
4 Title: "Lorem ipsum dolor sit amet",
5 Id: "1",
6 Open: true,
7 Collapse: true,
8}) {
9 <p>Lorem ipsum dolor sit amet, consectetur ....</p>
10}