eldav1d-marvel-ui
Version:
UI library for (and from) Playing with Marvel API
10 lines (9 loc) • 471 B
JavaScript
import { jsx as u } from "react/jsx-runtime";
const c = ({ disabled: t, children: r, variant: e = "neutral", ...o }) => {
const n = () => t ? "opacity-50 cursor-not-allowed" : "";
return u("button", { className: `uppercase font-bold text-white border border-white px-4 py-2 active-border focus-visible-border ${((a) => a === "neutral" ? "bg-black" : "")(e)} ${n()}`, disabled: t, ...o, children: r });
};
export {
c as default
};
//# sourceMappingURL=Button.js.map