@kubit-ui-web/react-components
Version:
Kubit React Components is a customizable, accessible library of React web components, designed to enhance your application's user experience
24 lines • 1.18 kB
JavaScript
;
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
exports.DotStandAlone = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
const react_1 = __importDefault(require("react"));
const dot_styled_1 = require("./dot.styled");
const DotStandAloneComponent = ({ formatedNumber, label, sizeStyles, styles, dataTestId = 'dot', height, width }, ref) => {
return ((0, jsx_runtime_1.jsxs)(dot_styled_1.DotStyled, { ref: ref, "$height": height, "$width": width, "data-testid": dataTestId, sizeStyles: sizeStyles, styles: styles, children: [label, formatedNumber] }));
};
/**
* @description
* Dot component is a component that can be used to display a dot.
* It can be used to display a notification dot or a dot to indicate a status.
* @param {IDotStandAlone} props
* @returns {JSX.Element}
* @constructor
* @example
* <Dot variant="primary" size="SMALL" number={1} maxNumber={99} />
*/
exports.DotStandAlone = react_1.default.forwardRef(DotStandAloneComponent);
//# sourceMappingURL=dotStandAlone.js.map