Skip to content

BaseExpandBox ​

Component to render content in expandable container

Props ​

Prop nameDescriptionTypeValuesDefault
expandexpand box from the outsideboolean-false
paddingdefine padding of the boxstringnone, large, small'small'
showMoreTextbutton text to show more contentstring-'Show more'
showLessTextbutton text to show less contentstring-'Show less'
autoHeightdefine whether box height depends on contentboolean-false
maxCollapsedHeightdefine the max height of the collapsed box in pxnumber-300
showButtonHeightdefine the height including margin of the show-more button in pxnumber-54
boxShadowoption to disable the box shadow if element is nested into a boxboolean-true

Events ​

Event namePropertiesDescription
update:expandundefined boolean - is box expandedevent emitted on button click
box-heightundefined number - the element offset heightemitting box-height on resize

Slots ​

NameDescriptionBindings
headerslot to add additional information before expandable content
defaultadd expand box content here
footerslot to add additional information after expandable content

Demo ​

Example of BaseExpandBox to display expandable text, unordered list, datalist elements