Slideover

Interactive documentation for the slideover component. Change props in the playground, inspect positions and width behavior, and copy the generated example.

close events: 0

Preview

Code

<Slideover
  v-model="isOpen"
  title="Slideover title"
  @close="handleClose">
  <PrimaryButton @click="isOpen = true">Open slideover</PrimaryButton>

  <template #body>
    Content
  </template>
</Slideover>

Positions

Examples for left and right slideovers.

Left

Right

Width

Example with custom widthClasses.

Slots

Slideover exposes default, head, and body slots.

SlotDescription
defaultTrigger content rendered outside the modal.
headOverrides the default header and close button area.
bodyMain slideover content area.

Props

This table matches the current SlideoverProps interface.

PropTypeDefaultDescription
modelValuebooleanfalseControls the open state of the slideover. Supports v-model binding.
titlestringundefinedOptional title rendered inside the default slideover header.
closeOnClickOutsidebooleantrueAllows closing the slideover when clicking on the overlay backdrop.
position'left' | 'right''left'Controls the side from which the slideover enters the viewport.
widthClassesstring'w-full sm:max-w-1/2'Custom Tailwind width classes applied to the slideover content container.