Dialog | CombricSkip to content

Dialog

Combric

Modal dialog with portal, background isolation, focus management, and dismissal.

@combric/react · v1.1.1 · Current

Import and usage

import { Dialog, DialogTrigger, DialogContent, DialogTitle, DialogDescription, DialogClose } from "@combric/react";

Load the native stylesheet with @import "@combric/react/css";. This path does not require Tailwind.

Examples

Confirmation dialog

Public API

Public exports
Name
Dialog
DialogTrigger
DialogContent
DialogTitle
DialogDescription
DialogClose
Documented contracts
Property / capabilityPublished contract
Contractopen/defaultOpen
ContractonOpenChange
Contractcontainer portal target

Accessibility

Moves focus inside, cycles Tab, isolates background siblings, restores focus, and requires an accessible name.

Keyboard

Tab/Shift+Tab cycle; Escape closes the top active layer and restores trigger focus.

CSS and customization

Combric classes and canonical --combric-* variables provide the package presentation. Consumer className extends the required class; it does not replace the component contract.

Source

View source on GitHub