UNPKG

@cerberus-design/react

Version:

The Cerberus Design React component library.

39 lines (37 loc) 912 B
import { createCerberusPrimitive } from "./chunk-YJRAJNYI.js"; // src/components/notifications/primitives.tsx import { Toast, Toaster } from "@ark-ui/react/toast"; import { toast } from "styled-system/recipes"; var { withSlotRecipe } = createCerberusPrimitive(toast); var NotificationProvider = Toaster; var NotificationRoot = withSlotRecipe( Toast.Root, "root" ); var NotificationHeading = withSlotRecipe( Toast.Title, "title" ); var NotificationDescription = withSlotRecipe(Toast.Description, "description"); var NotificationCloseTrigger = withSlotRecipe( Toast.CloseTrigger, "closeTrigger" ); var NotificationActionTrigger = withSlotRecipe( Toast.ActionTrigger, "actionTrigger" ); export { NotificationProvider, NotificationRoot, NotificationHeading, NotificationDescription, NotificationCloseTrigger, NotificationActionTrigger }; //# sourceMappingURL=chunk-LO6YTNOP.js.map