Files
blitzkit/packages/website/src/components/AlertDialog/index.tsx
T
2026-11-27 14:57:39 -06:00

19 lines
656 B
TypeScript

import { AlertDialog as _ } from "radix-ui";
import { composeRadixComponents } from "../../ui/compose";
import { DialogActions } from "../DialogActions";
import { DialogBody } from "../DialogBody";
import { DialogField } from "../DialogField";
import { DialogHeader } from "../DialogHeader";
import styles from "./index.module.css";
// TODO: figoure out tree shaking for these kinds of wrapped components
// The extra parts live in their own components, shared by every dialog-like surface
export const AlertDialog = {
...composeRadixComponents(_, styles),
Header: DialogHeader,
Body: DialogBody,
Actions: DialogActions,
Field: DialogField,
};