Holiday sale: 40% off Pro with code · limited offer · ends Dec 31
See ProAlerts, confirmation dialogs, input prompts and action sheets made of refractive frosted glass. Alerts pop in on a spring with a slight overshoot, action sheets rise from the bottom edge and can be dragged or flung away with rubber banding, and the page behind blurs, dims and settles back through an onProgress callback. Focus is trapped and restored, Escape cancels, arrow keys walk the sheet, destructive actions are styled in red, and reduced motion swaps every spring for an instant change.
Included in Pro and aboveCompare plans
Live preview. Move the mouse, scroll and click inside the frame.
The copied code, markdown and prompt include the values you set here.
import { GlassAlertActionSheet } from "@/components/hyperblur-pro/glass-alert-action-sheet"
<GlassAlertActionSheet />
<GlassAlert
open={open}
onClose={() => setOpen(false)}
title="Delete this photo?"
actions={[{ label: "Cancel", style: "cancel" }, { label: "Delete", style: "destructive", onPress: remove }]}
/>
<GlassActionSheet open={sheet} onClose={() => setSheet(false)} actions={[{ label: "Copy" }, { label: "Delete", style: "destructive" }]} />| Prop | Type | Default | Description |
|---|---|---|---|
| backdrop / photo | string | "https://images.unsplash.com/photo-1476514525535-07fb3b4ae5f1" | GlassAlertActionSheet: blurred scene backdrop and the photo inside the demo screen. |
| avatars | string[] | 4 Unsplash portraits | GlassAlertActionSheet: people shown in the share row of the sheet. |
| title / subtitle | string | "Dialogs that float." | GlassAlertActionSheet: heading and paragraph. |
| startOpen | boolean | true | GlassAlertActionSheet: open a sheet and an alert on load so the demo reads at a glance. |
| open / onClose | boolean / () => void | required | GlassAlert, GlassActionSheet: controlled visibility. |
| actions | { label, style?, icon?, onPress? }[] | OK | Buttons or rows. style is default, preferred, cancel or destructive. |
| title / message / icon / input | string / ReactNode / { placeholder, defaultValue, onSubmit } | undefined | GlassAlert: text, a glyph in a tinted squircle and an optional text field. |
| header / cancelLabel | ReactNode / string | "Cancel" | GlassActionSheet: custom content above the rows and the detached cancel button. |
| inline / onProgress | boolean / (p: number) => void | false | Render inside the nearest positioned parent instead of the viewport, and drive your own scale-down of the page. |
| appearance / accent / refraction | "light" | "dark" | "auto" / string / number | "light" / "#0a84ff" / 1 | Glass tint, preferred action color and lens strength. |
Source code is included in Pro and above