Ver código
<co-accordion heading="Título de ejemplo"></co-accordion>
Props
| Prop | Atributo | Tipo | Default | Descripción |
|---|
disabled | disabled | boolean | false | Hide the chevron / disable the toggle interaction. |
heading | heading | string | '' | Section heading text (used when the `header` slot is empty). |
open | open | boolean | true | Whether the section is expanded. |
Eventos
| Evento | Detail | Bubbles | Cancelable | Descripción |
|---|
coToggle | boolean | ✓ | ✓ | Emitted when the user toggles the section. |
Slots
| Slot | Descripción |
|---|
(default) | Body content. Hidden when `open=false`. |
header | Optional override for the header content (replaces `heading` prop). |
CSS Parts
| Part | Descripción |
|---|
::part(accordion) | |
::part(body) | |
::part(body-inner) | |
::part(caret) | |
::part(header) | |
::part(heading) | |
CSS Custom Properties
Este componente no expone CSS custom properties.