@vectara/vectara-ui
Version:
Vectara's design system, codified as a React and Sass component library
9 lines (8 loc) • 437 B
JavaScript
import { jsx as _jsx } from "react/jsx-runtime";
import { Toaster } from "sonner";
import { VuiPortal } from "../portal/Portal";
export const VuiNotifications = (props) => {
const finalProps = Object.assign({ position: "top-right" }, props);
// Render inside portal so notifications can appear above everything else, including drawers.
return (_jsx(VuiPortal, { children: _jsx(Toaster, Object.assign({}, finalProps)) }));
};