Skip to main content

Bottom Sheet

The BottomSheet component, derived from the VDialog, serves as a versatile element that slides up from the bottom of the screen, providing additional functionality and options within an application. This component's usage is valid for both mobile and web platforms, ensuring consistent functionality across different devices.

While bottom navigation components typically house buttons and specific application-level actions, the bottom sheet offers a broader range of content and functionalities.

info

For more details about Vuetify’s usage of BottomSheet component, click BottomSheet page.
For more prop explanations, click Vuetify BottomSheet API page.

Props

AttributeDescriptionTypeDefault
attachSpecifies which DOM element that this component should detach to.anyfalse
classAllows custom properties to take effect.stringundefined
darkApplies dark theme.booleanfalse
eagerEnsures that the content of the component is rendered immediately upon mounting.booleanfalse
scrollableIt expects a vCard and a vCardText component with a designated height.booleanfalse
visibleVisibility of bottomSheet component.booleantrue
hideOverlayPrevents the overlay from being displayed along with the bottom sheet.booleanfalse
persistentHelps no being closed by clicking outside them.booleanfalse
valueSets the active button.numberundefined
visibleVisibility of BottomSheet component.booleantrue

Events

AttributeDescription
click:outsideAllows you to provide a handler to be invoked when the user clicks outside of the target element.

Usage Scenarios

  • If you want to dynamically display components within the component, you should first set the value of the component to true at the desired location, and then call the code to create the dynamic content inside a setTimeout function.
  • If you want to access the static or dynamic components within the component's content, you should first set the value of the component to true, and then access the components inside using a setTimeout function to perform the desired operation.

Default

image

How to scrollable?

If you want to enable scrolling in the bottomSheet, you can review the two usage examples below and choose the one that fits your needs.

Using scroll

  • Set the scrollable prop of the BottomSheet to true.

  • Add a Card component to the ghost inside the BottomSheet.

  • Assign the class overflow-auto to the Class prop of the added Card component.

  • Set the height of the added Card component using the height prop in the style section.

VBottomSheetScrollWithHeaderInformation
bottomSheetScrollable

Samples Qjson

BottomSheet