Ir al contenido

co-list-footer

Footer de acciones pensado para el pie de paneles desplegables y listas (co-popover, co-combobox, …). Renderiza uno o dos botones de ancho completo con el diseño estándar de footer; usa las props para las acciones primaria y secundaria comunes, o el slot por defecto para contenido totalmente personalizado. Normalmente se coloca dentro de un contenedor de panel.

Ver código
<co-list-footer secondary-label="Cancelar" primary-label="Crear"></co-list-footer>

Props

PropAtributoTipoDefaultDescripción
primaryIconprimary-iconstring'plus'Primary action leading icon (Phosphor). Set to '' to hide the icon.
primaryLabelprimary-labelstring | undefinedPrimary (filled) action label. Omit to hide the primary button.
secondaryIconsecondary-iconstring'plus'Secondary action leading icon (Phosphor). Set to '' to hide the icon.
secondaryLabelsecondary-labelstring | undefinedSecondary (outlined) action label. Omit to hide the secondary button.

Eventos

EventoDetailBubblesCancelableDescripción
coPrimaryvoidEmitted when the primary action is clicked.
coSecondaryvoidEmitted when the secondary action is clicked.

Slots

SlotDescripción
(default)Custom footer content (rendered after the prop buttons).

CSS Parts

PartDescripción
::part(footer)

CSS Custom Properties

Este componente no expone CSS custom properties.