UNPKG

fui-fancyui

Version:
24 lines (23 loc) 588 B
"use client"; import { jsx as a } from "react/jsx-runtime"; import { ProgressBarContainer as n, ProgressBarFill as p } from "./ProgressBar.style.js"; function g(o) { const { progress: r = 0, maxValue: e = 100, id: s, themeType: i = "primary", layer: t = 3, ...l } = o, m = r / e * 100; return /* @__PURE__ */ a( n, { id: s, role: "progressbar", $themeType: i, $layer: t, "aria-valuenow": r, "aria-valuemin": 0, "aria-valuemax": e, ...l, children: /* @__PURE__ */ a(p, { width: m }) } ); } export { g as default };