@razorpay/blade
Version:
The Design System that powers Razorpay
22 lines (19 loc) • 670 B
JavaScript
import { hintTextSize } from '../formTokens.js';
import '../../Typography/index.js';
import { jsxs } from 'react/jsx-runtime';
import { Text } from '../../Typography/Text/Text.js';
var CharacterCounter = function CharacterCounter(_ref) {
var currentCount = _ref.currentCount,
maxCount = _ref.maxCount,
_ref$size = _ref.size,
size = _ref$size === void 0 ? 'medium' : _ref$size;
return /*#__PURE__*/jsxs(Text, {
variant: "caption",
size: hintTextSize[size],
weight: "regular",
color: "surface.text.gray.muted",
children: [currentCount, "/", maxCount]
});
};
export { CharacterCounter };
//# sourceMappingURL=CharacterCounter.js.map