LiftDesign System
Beta
한국어 Get started
  1. Components
  2. Product
  3. Modal

Components / Product

Modal — Implementation

Blocking dialog

Context
Product
Content
source-derived
Availability
implemented
Verification
static-only 2026-11-18
Source revision
Lift 1.2.3 f59637afd452…
Source language
KO · not translated

Supported environment

The Lift 1.2.3 reference implementation is a React 18 function component with inline styles referencing Product tokens (hsl(var(--*))), so styles.product.css must be loaded. The mapping to an npm package could not be verified in this repository.

API

Copied from ModalProps in components/_types.d.ts.

proptypedefaultdoc
openboolean—
onClose() => void—
titleReact.ReactNode—
descriptionReact.ReactNode—
footerReact.ReactNode—
size"sm" | "md" | "lg"md
childrenReact.ReactNode—
styleReact.CSSProperties—

Code

One import line plus the example code from the usage note.

jsx · import
import { Modal } from "./components/overlays/Modal.jsx";
jsx · Modal.prompt.md
<Modal open={open} onClose={() => setOpen(false)}
  title="sk_live_4f2a 를 삭제합니다"
  description="이 키를 쓰는 요청은 삭제 시점부터 401을 받습니다. 되돌릴 수 없습니다."
  footer={<><Button variant="ghost" onClick={() => setOpen(false)}>취소</Button><Button variant="destructive">삭제</Button></>} />

Token bindings

Tokens the implementation references with var(). Names assembled at runtime (e.g. --state-${tone}-fg) are not listed.

--font-sans, --foreground, --modal-bg, --modal-border, --modal-shadow, --motion-overlay-in, --motion-panel-in, --muted-foreground, --overlay, --overlay-blur, --overlay-opacity, --radius-lg, --tracking-title, --z-modal

Source