Files
blitzkit/packages/website/src/components/AlertDialog/index.tsx
T

18 lines
656 B
TypeScript
Raw Normal View History

2026-10-31 14:13:17 -05:00
import { AlertDialog as _ } from "radix-ui";
import { composeRadixComponents } from "../../ui/compose";
2026-11-27 14:57:39 -06:00
import { DialogActions } from "../DialogActions";
import { DialogBody } from "../DialogBody";
import { DialogField } from "../DialogField";
import { DialogHeader } from "../DialogHeader";
2026-10-31 14:13:17 -05:00
import styles from "./index.module.css";
2026-11-27 14:57:39 -06:00
// 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),
2026-11-12 15:14:01 -06:00
2026-11-27 14:57:39 -06:00
Header: DialogHeader,
Body: DialogBody,
Actions: DialogActions,
Field: DialogField,
};