Button Glass

Glassmorphic button with layered shadows, blur, and 3D press animation. Use for hero CTAs, marketing pages, and over-image overlays where a regular Button feels flat.

Default

Primary glass button.

Dark previewReplay previewOpen in new tab

Usage

Import the parts you need from the component's folder.

ts
import { ButtonGlass } from "@/components/ui/button-glass";

Variants

default, outline, ghost, white, black variants.

Dark previewReplay previewOpen in new tab

Sizes

sm, md (default), lg, xl with matching rounded shapes.

Dark previewReplay previewOpen in new tab

Rounded shapes

Adjust corner radius from sharp (none) to fully pill (full).

Dark previewReplay previewOpen in new tab

API Reference

ButtonGlass

PropTypeDefaultDescription
variant"default" | "outline" | "ghost" | "white" | "black" | "white-ghost" | "black-ghost" | "link""default"Visual style.
size"sm" | "md" | "lg" | "xl" | "icon""md"Height and padding.
rounded"none" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "full""full"Corner radius.
toRouteLocationRaw—When set, renders as NuxtLink. External URLs open in a new tab.
asstring"button"HTML element when to is empty.
SlotDescription
defaultButton label and icons.