UNPKG

@uva-glass/component-library

Version:

React components UvA

29 lines (28 loc) 876 B
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_j5fle_1", "icon-button--destructive": "_icon-button--destructive_j5fle_27", "icon-button--no-border": "_icon-button--no-border_j5fle_35", "icon-button--wide": "_icon-button--wide_j5fle_44" }, m = _( ({ children: o, type: n = "button", variant: e, noBorder: c, wide: i, ...r }, u) => /* @__PURE__ */ b( "button", { ...r, className: s(t["icon-button"], { [t["icon-button--destructive"]]: e === "destructive", [t["icon-button--no-border"]]: c, [t["icon-button--wide"]]: i }), ref: u, type: n, children: o } ) ); export { m as IconButton }; //# sourceMappingURL=IconButton.js.map