Skip to content
Velkin LogoVelkin Logo
Velkin
VELKIN/UI

Modern UI components for product teams and their AI agents. Lit core, typed wrappers, live MCP.

sales@velkinui.com

Product

  • Docs
  • Components
  • Studio
  • Pricing

Resources

  • Quick start
  • Blog
  • Changelog
  • Roadmap
  • Status

Project

  • About
  • Contact
  • License
  • Privacy
  • Terms

© 2026 Velkin. MIT core · Pro licenses available.

VELKIN

Overlay

An overlay component with backdrop and centered content slot.

vu-overlay · @velkin/react/overlay

Copy page

Import

React
npm i @velkin/react

import { VuOverlay } from "@velkin/react/overlay";

Examples

API

Props

PropTypeDefaultDescription
openbooleanfalseWhether the overlay is visible. Default: `false`.
persistentbooleanfalseBlocks backdrop and Escape close. Default: `false`.
closeOnEscbooleantrueEscape emits `vu-close` when topmost. Default: `true`.
backdropblurbooleanfalseBlurs content behind the scrim. Default: `false`.
lockscrollbooleantrueLocks document scroll when open. Default: `true`.
ariaLabelstring""Accessible name when slotted content has no visible title. Default: `""`.

Events

EventDetailDescription
vu-openCustomEvent<void>When the overlay begins opening.
vu-afteropenCustomEvent<void>After the open transition window.
vu-closeVuOverlayCloseDetailCancelable close intent; parent sets `open` false when not prevented.
vu-aftercloseCustomEvent<void>After the close transition window.

Slots

SlotDescription
—- Centered content above the backdrop (e.g. a `vu-card` panel).

CSS parts

PartDescription
backdropFull-area scrim behind slotted content.
contentFlex centering frame for the default slot.

Methods

MethodDescription
show- Sets `open` to true.
hide- Sets `open` to false.
toggle- Toggles `open`.
focus- Focuses the content frame.

Types

NameDefinition
VuOverlayCloseDetail
{ reason: VuOverlayCloseReason; }

Related

Feedback

  • AlertAn alert component with intent colors, variants, and optional dismiss.
  • DialogA dialog component with region slots, focus trap, and backdrop.
  • DrawerA drawer component with slide-in panel, backdrop, and focus trap.
  • NotificationA notification component that renders the toast viewport.
  • PopoverA popover component with smart placement and a trigger slot.
  • ProgressA progress component with linear, ring, and indeterminate modes.

Guides

  • AccessibilityLabels and overlays
  • AppearanceStatus colors

Browse

  • Previous: NotificationEarlier in the sidebar
  • Next: PopoverLater in the sidebar
  • All componentsBrowse the full index