v-model support

The component's collapsed (visible) state can also be set with v-model which binds internally to the visible prop.

Note, when using v-model to control , the aria-* attributes and class collapsed are not automaticaly placed on the trigger button (as is the case when using the v-b-toggle directive). In this example we must control them ourselves.

When using accordion mode, make sure you place the trigger elements and components inside an element with Women's Yuzefi Box Bag Asher Ruby role="tablist" and set role="tab" on each trigger element's container (each trigger element should be wrapped) in order to help screen reader users navigate the accordion group.

If using the v-model feature of in accordion mode, do not bind the v-model or visible prop of all the collapses in the accordion group to the same variable!

Ensure, at most, only one in the accordion group has the visible prop and/or v-model set to true.

Hiding and showing content in the toggle button based on collapse state

When using the v-b-toggle directive, the class collapsedOxblood OTL Kelsey Coach Small Brown J Signature 8xOqY will automatically be placed on the trigger element when the collapse is closed, and removed when open. You can use this class to display or hide content within the togger via custom CSS:

Accessibility

The v-b-toggle directive will automatically add the ARIA attributes aria-controls and aria-expanded to the component that the directive appears on (as well as add the class collapsed when not expanded). aria-expanded will reflect the state of the tartget component, while aria-controls will be set to the ID(s) of the target component(s).

If using v-model to set the visible state instead of the directive v-b-toggle, you will be required to, on the toggle element, add the aria-controls and other appropriate attributes and classes yourself.

While the v-b-toggle directive can be placed on almost any HTML element or Vue component, it is reccomended to use a button or link (or similar component) to act as your toggler. Otherwise your trigger elements may be inaccessible to keyboard or screen reader users. If you do place them on something other than a button or link (or similar component), you should add the attributes tabindex="0" and role="button" to allow users of assistive technology to reach your trigger element.

When using accordion mode, make sure you place the trigger elements and components inside an element with role="tablist" and set role="tab" on each trigger element's container in order to help screen reader users navigate the accordion group. Unfortunately, Boostrap-Vue cannot apply those roles for you automaticaly, as it depends on your final document markup.