Accordion โ
...
Browser support โ
...
Parameters โ
The CSS component uses the <section>
tag with the z-accordion
HTML custom attribute.
The parametrization of the component can be done with the following custom HTML params:
Name | Type | Description |
---|---|---|
z-accordion | string | Custom attribute for the accordion component |
accordion-size | string | The size of the accordion |
Playground โ
Customization โ
HTML Examples โ
Imports
html
<link rel="stylesheet" href="/0.3.6/@zurich/css-components/base.css" />
<link rel="stylesheet" href="/0.3.6/@zurich/css-components/Accordion.css" />
Code
html
<section z-accordion accordion-size="l">
<details>
<summary>Lorem ipsum dolor sit amet</summary>
</details>
<main>
<p>Body text lorem ipsum dolor sit amet</p>
</main>
</section>