Components / PaperDialog

Overlays

PaperDialog

High-emphasis modal panel with maximum hard-offset lift.

← strongest lift, highest intent.

Preview

'use client'

import * as React from 'react'

export interface PaperDialogProps {
  open?: boolean

Installation

Copy this file into your project, export its barrel, and then add it to the master UI index.

  1. Step 1.Create this file:
    components/ui/paperDialog/paperDialog.tsx
  2. Step 2.Create the barrel:
    components/ui/paperDialog/index.ts
  3. Step 3.Add this export in components/ui/index.ts:
    export * from './paperDialog'

Variants

With trigger

Props

PropTypeDefaultDescription
openbooleanundefinedControlled open state.
defaultOpenbooleanfalseInitial open state for uncontrolled mode.
onOpenChange(open: boolean) => voidundefinedOpen/close callback.
titlestringrequiredDialog title line.

Examples

Destructive confirm

Use danger button in footer for high-risk actions.

<PaperDialog title="Archive project" trigger={<PaperButton />}>...</PaperDialog>

Quick form modal

Collect one short action without route transitions.

<PaperDialog title="Invite teammate" ... />