UNPKG

@anoki/fse-ui

Version:

FSE UI components library

41 lines (40 loc) 817 B
import { j as o } from "./index.es244.js"; import { clsx as b } from "./index.es246.js"; import './components/ui/ButtonV2/ButtonV2.css';/* empty css */ import { Spinner as f } from "./index.es196.js"; const c = ({ children: r, variant: e = "primary", disabled: s = !1, loading: t = !1, onClick: i, type: m = "button", ...n }) => { const u = b( "fs-7 md-fs-6 fw-semibold", "ui-button-v2", `ui-button-v2-${e}`, { "ui-button-v2-disabled": s || t } ); return /* @__PURE__ */ o.jsxs( "button", { type: m, className: u, onClick: i, disabled: s || t, ...n, children: [ r, t && /* @__PURE__ */ o.jsx(f, { height: 16 }) ] } ); }; export { c as ButtonV2 }; //# sourceMappingURL=index.es29.js.map