UNPKG

@hitachivantara/uikit-react-core

Version:
16 lines (15 loc) 433 B
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 };