@hitachivantara/uikit-react-core
Version:
UI Kit Core React components.
16 lines (15 loc) • 433 B
JavaScript
import { jsx, jsxs } from "react/jsx-runtime";
//#region src/utils/CounterLabel.tsx
/** A utility counter component (eg. X / Y) @private */
var CounterLabel = ({ selected, total, conjunctionLabel = "/", ...others }) => {
return /* @__PURE__ */ jsxs("span", {
...others,
children: [
/* @__PURE__ */ jsx("b", { children: selected }),
" ",
` ${conjunctionLabel} ${total}`
]
});
};
//#endregion
export { CounterLabel };