UNPKG

@wordpress/components

Version:
24 lines (23 loc) • 747 B
import { Icon, tip } from "@wordpress/icons"; import deprecated from "@wordpress/deprecated"; import { jsx, jsxs } from "react/jsx-runtime"; // packages/components/src/tip/index.tsx /** * Displays a contextual tip with a decorative light-bulb icon. * * @deprecated Use `Notice.Root` and `Notice.Description` from `@wordpress/ui` instead. */ function Tip(props) { const { children } = props; deprecated("wp.components.Tip", { since: "7.2", version: "7.4", alternative: "Notice from @wordpress/ui" }); return /* @__PURE__ */ jsxs("div", { className: "components-tip", children: [/* @__PURE__ */ jsx(Icon, { icon: tip }), /* @__PURE__ */ jsx("p", { children })] }); } export { Tip, Tip as default }; //# sourceMappingURL=index.mjs.map