@veracity/vui
Version:
Veracity UI is a React component library crafted for use within Veracity applications and pages. Based on Styled Components and @xstyled.
26 lines (24 loc) • 874 B
JavaScript
import { cs } from "../utils/styles.js";
import { useStyleConfig } from "../core/theme.js";
import vui from "../core/vui.js";
import { T } from "../t/t.js";
import { useNotificationContext } from "./context.js";
import { jsx } from "react/jsx-runtime";
//#region src/notification/notificationTitle.tsx
/** Displays a title within the Notification. */
const NotificationTitle = vui((props, ref) => {
const { className, ...rest } = props;
const styles = useStyleConfig("Notification", useNotificationContext());
return /* @__PURE__ */ jsx(T, {
className: cs("vui-notificationTitle", className),
fontWeight: "demi",
ref,
...styles.title,
...rest
});
});
NotificationTitle.displayName = "NotificationTitle";
//#endregion
export { NotificationTitle, NotificationTitle as default };
globalThis.__vuiVersion__ = "5.3.1"
//# sourceMappingURL=notificationTitle.js.map