Epicmax - We are the core team behind Vuestic UI and Vuestic Admin and frontend development company specializing in Vue.js since our founding in 2017.

Collapse
#

collapseexpandexpandable-panel

Toggles the visibility of content.

Examples
#

Default
#

Default usage of the va-collapse component.

Open in GitHub

Icon
#

You can add an icon to the header.

Open in GitHub

Color
#

Use two color schemes.

Open in GitHub

Slots
#

While customizing header, don't forget to v-bind attrs from slot argument for accessibility. Use value argument to change the look.

You can make own icon and place it anywhere and apply iconAttrs on it.

Open in GitHub

Accessibility
#

The component itself has a role button for header, and role heading for each header's wrapping element. The header's attribute aria-expand is set to true when its content is visible, and to false when the content is invisible. Header also has aria-controls to identify element contents that are being controlled. aria-disabled depends on disabled property.