Ir al contenido

co-accordion

Ver código
<co-accordion heading="Título de ejemplo"></co-accordion>

Props

PropAtributoTipoDefaultDescripción
disableddisabledbooleanfalseHide the chevron / disable the toggle interaction.
headingheadingstring''Section heading text (used when the `header` slot is empty).
openopenbooleantrueWhether the section is expanded.

Eventos

EventoDetailBubblesCancelableDescripción
coTogglebooleanEmitted when the user toggles the section.

Slots

SlotDescripción
(default)Body content. Hidden when `open=false`.
headerOptional override for the header content (replaces `heading` prop).

CSS Parts

PartDescripción
::part(accordion)
::part(body)
::part(body-inner)
::part(caret)
::part(header)
::part(heading)

CSS Custom Properties

Este componente no expone CSS custom properties.