@uva-glass/component-library
Version:
React components UvA
29 lines (28 loc) • 876 B
JavaScript
import { jsx as b } from "react/jsx-runtime";
import { c as s } from "../../clsx-OuTLNxxd.js";
import { forwardRef as _ } from "react";
import '../../assets/IconButton.css';const t = {
"icon-button": "_icon-button_159x3_1",
"icon-button--destructive": "_icon-button--destructive_159x3_27",
"icon-button--no-border": "_icon-button--no-border_159x3_35",
"icon-button--wide": "_icon-button--wide_159x3_44"
}, f = _(
({ children: o, type: n = "button", variant: c, noBorder: i, wide: r, ...e }, u) => /* @__PURE__ */ b(
"button",
{
...e,
className: s(t["icon-button"], {
[t["icon-button--destructive"]]: c === "destructive",
[t["icon-button--no-border"]]: i,
[t["icon-button--wide"]]: r
}),
ref: u,
type: n,
children: o
}
)
);
export {
f as IconButton
};
//# sourceMappingURL=IconButton.js.map