UNPKG

@gravity-ui/uikit

Version:

Gravity UI base styling and components

16 lines (15 loc) 1.08 kB
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.AvatarStackMoreButton = void 0; const tslib_1 = require("tslib"); const jsx_runtime_1 = require("react/jsx-runtime"); const React = tslib_1.__importStar(require("react")); const Avatar_1 = require("../Avatar/index.js"); const cn_1 = require("../utils/cn.js"); const AvatarStackMore_1 = require("./AvatarStackMore.js"); const b = (0, cn_1.block)('avatar-stack'); exports.AvatarStackMoreButton = React.forwardRef(({ className, badgeClassName, size = Avatar_1.DEFAULT_AVATAR_SIZE, onClick, count, 'aria-label': ariaLabel, borderColor, }, ref) => { return ((0, jsx_runtime_1.jsx)("button", { ref: ref, type: "button", className: b('more-button', { size }, className), onClick: onClick, children: (0, jsx_runtime_1.jsx)(AvatarStackMore_1.AvatarStackMore, { className: badgeClassName, size: size, count: count, "aria-label": ariaLabel, borderColor: borderColor }) })); }); exports.AvatarStackMoreButton.displayName = 'AvatarStack.MoreButton'; //# sourceMappingURL=AvatarStackMoreButton.js.map