Hacktron Design System

Drawer

A panel that slides in from the edge of the screen for a detail view or a form.

<template>
  <Drawer v-model:open="open" title="SQL injection in login handler" size="lg">
    Content
  </Drawer>
</template>

Props

Name Type Default
size"sm" | "md" | "lg" | "xl""md"
titlestring
closeLabelstring"Close"
...propsUSlideover props (side, overlay, dismissible, ...)

Slots

Name Description
defaultThe scrollable body content, below the tray header.
metaA secondary metadata row under the title (links, tags, badges) — only renders its wrapper row if provided.
actionsA right-aligned action cluster in the tray header (dropdowns, buttons) — only renders its wrapper row if provided.
nav-leadingExtra controls in the top nav bar's left cluster, after the always-present close button — e.g. a maximize button.
nav-trailingContent in the top nav bar's right cluster — e.g. prev/next navigation. Only renders its wrapper row if provided.
footerForwarded to USlideover's own #footer slot, unstyled.
contentFull escape hatch, forwarded to USlideover's own #content slot with `close` on its scoped slot — bypasses this component's entire shell (top nav bar, tray header, body) for a drawer that doesn't fit it at all.

Usage