Skip to content
Accordion content
Accordion content
Body text inside accordion
Accordion summary
Accordion ⚠️ Experimental
The Accordion component can be used imported from:
Playground
Parameters
Slots
This component has slots. Check the documentation about how to use the slots.
Name | Tags | Description |
---|---|---|
default | span | The content of the accordion item |
summary | span | The title of the accordion item |
Parameters use
Check the documentation about how to use the parameters.
ngModel
Attention!
If you hardcode this value, it will not be reactive and the selection won't change. Use a variable instead and, ideally, a closed loop.
Controls if the accordion item is open or closed.
content
The content
attribute is used to set the content of the accordion.
The default slot can also be used:
config
The config
attribute it's used to set the size of the accordion item. Default is m
. You can also set it as l
.
summary
The summary
attribute is used to set the text label of the accordion item. Make sure you always use it.
Also you can use the summary
slot to set the text label of the accordion item.
Flags
open
This flag is only used to set the initial value with no control loop. Use model
to handle the model properly:
borderless
The borderless
attribute is used to remove the border of the accordion item. Default is false
.
Browser support
Detected engine:
Chromium
Webkit
Gecko
CodeSandbox example
Sorry, not available yet ☹️