@wordpress/components
Version:
UI components for WordPress.
39 lines (32 loc) • 1.03 kB
JavaScript
;
Object.defineProperty(exports, "__esModule", {
value: true
});
exports.default = void 0;
var _element = require("@wordpress/element");
var _primitives = require("@wordpress/primitives");
/**
* WordPress dependencies
*/
/**
* @typedef Props
* @property {import('react').ReactNode} children Children to render in the tip.
*/
/**
* @param {Props} props
* @return {JSX.Element} Element
*/
function Tip(props) {
return (0, _element.createElement)("div", {
className: "components-tip"
}, (0, _element.createElement)(_primitives.SVG, {
width: "24",
height: "24",
viewBox: "0 0 24 24"
}, (0, _element.createElement)(_primitives.Path, {
d: "M12 15.8c-3.7 0-6.8-3-6.8-6.8s3-6.8 6.8-6.8c3.7 0 6.8 3 6.8 6.8s-3.1 6.8-6.8 6.8zm0-12C9.1 3.8 6.8 6.1 6.8 9s2.4 5.2 5.2 5.2c2.9 0 5.2-2.4 5.2-5.2S14.9 3.8 12 3.8zM8 17.5h8V19H8zM10 20.5h4V22h-4z"
})), (0, _element.createElement)("p", null, props.children));
}
var _default = Tip;
exports.default = _default;
//# sourceMappingURL=index.js.map