Search
Search for a page

Dialog

A highly tactile modal dialog alert with Apple-spec blur backdrops and elastic animations.

bunx shadcn-svelte@latest add https://ui.grgurevic.click/r/dialog.json

Usage

Click the button below to trigger the refractive dialog overlay.

Best practices

The best practices when using dialogs.

  • Keep title text and descriptions short so the alert message remains scannable.
  • Always offer a clear, non-destructive escape path using the translucent logoButton variant.
  • Position primary action buttons on the right side of the footer for natural scan reading.
  • For lightweight contextual options, consider using a logoSheet instead of a full-page dialog overlay.

Props

The props available for the Dialog.Content component.

PropTypeDefaultDescription
liquidGlassbooleanfalseEnables physical liquid glass refraction distortion (Chromium only).
refractiveIndexnumber1.5Index of refraction (IOR) for the glass surface curvature. Range 1.0 (air) to 2.4.
bezelWidthnumber30Depth of the glass bezel refraction boundary zone (px).
displacementScalenumber40Strength of the physical refraction displacement offset.
surfaceProfile"circle" | "squircle" | "concave" | "lip""squircle"3D bezel outline profile contour style.
chromaticAberrationbooleanfalseEnables realistic RGB channel prism splitting refraction at bezel edges.
saturationBoostnumber1.3Color saturation boost multiplier inside refracted zone.
backgroundBlurnumber0.3Pre-blur factor applied to background to hide SVG rendering artifacts.
Previous Card
Give feedback
Next Dropdown Menu