Expansion Panel

The v-expansion-panel component is useful for reducing vertical space with large amounts of information. The default functionality of the component is to only display one expansion-panel body at a time; however, with the expandable property, the expansion-panel can remain open until explicitly closed.

Usage

Accordion expansion-panels can only have 1 panel open at a time.

API

v-expansion-panel
Name
dark
Default
false
Type
boolean

ダークテーマを適用します。

Name
disabled
Default
false
Type
boolean

Components.ExpansionPanels.

Name
expand
Default
false
Type
boolean

Components.ExpansionPanels.

Name
focusable
Default
false
Type
boolean

Components.ExpansionPanels.

Name
inset
Default
false
Type
boolean

Components.ExpansionPanels.

Name
light
Default
false
Type
boolean

ライトテーマを適用します。

Name
popout
Default
false
Type
boolean

Components.ExpansionPanels.

Name
readonly
Default
false
Type
boolean

Components.ExpansionPanels.

Name
value
Default
null
Type
number | array

Components.ExpansionPanels.

Examples

Expand

Expand expansion-panels will stay open until closed. When providing a model, any value not specified will be interpreted as false.

External control

Expansion panels can be controlled externally by modifying the v-model. Its value corresponds to a zero-based index of the currently opened expansion panel content. If expand prop is used then it is an array of booleans where the index corresponds to the index of the content.

Disabled and readonly

Both the expansion-panel and its content supports the disabled and readonly props.

Popout & Inset

The expansion-panel also has two alternative designs you can activate with the props popout and inset.

Custom icon

Expand action icon can be customized with expand-icon prop.

Icon slot

Expand action icon can be customized using actions slot.

Focusable

The expansion-panel headers can be made focusable with the prop focusable.

Edit this page | language on Github
Vuetify 3 is now available!The latest version of Vuetify is now available!
Learn about Vuetify 3's new features and functionality for modern Vue applications
Start exploringExplore