UNPKG

@magicbell/magicbell-react

Version:

React components for building a notification inbox for your app

11 lines 690 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); const tslib_1 = require("tslib"); const react_1 = tslib_1.__importStar(require("react")); const Tooltip_js_1 = tslib_1.__importDefault(require("../Tooltip/Tooltip.js")); const IconButton = (0, react_1.forwardRef)(function IconButton({ children, tooltip, tooltipPlacement = 'bottom-end', ...props }, ref) { return (react_1.default.createElement(Tooltip_js_1.default, { tooltip: tooltip || props['aria-label'], placement: tooltipPlacement, delay: 500 }, react_1.default.createElement("button", { ref: ref, ...props }, children))); }); exports.default = IconButton; //# sourceMappingURL=IconButton.js.map