Skins UI

Glass modal

A frosted pane over a blurred page, lit by a bright rim on top.

Customize

Props
Tone

Installation

npx shadcn@latest add https://skinsui.dev/r/modal-glass.json

Usage

usage.tsx
import { Modal } from "@/components/skins/modal-glass";<Modal  triggerLabel="Delete project"  title="Delete this project?"  description="Its pages, settings and history will be removed. You can't undo this."  confirmLabel="Delete"  tone="danger"/>

Props

  • triggerLabel"Open"
    string

    The label of the button that opens it.

  • titleNone
    string

    The heading, read out when it opens.

  • descriptionNone
    string

    The line under the title.

  • confirmLabel"Confirm"
    string

    The label of the main action.

  • cancelLabel"Cancel"
    string

    The label of the button that closes it.

  • tone"default"
    "default" | "danger"

    Danger colours the main action red, for things that can't be undone.

  • onConfirmNone
    () => void

    Called when the main action is pressed, just before it closes.