Abandons current operation.
<button type="button" class="btn-cancel btn-cancel--bordered" style="--bg:#241430;border-radius:10px">Cancel</button>
<style>
.btn-cancel {
font: 600 15px/1 system-ui, sans-serif;
padding: 11px 20px;
border: 2px solid var(--bg);
background: transparent;
color: var(--bg);
cursor: pointer;
}
.btn-cancel--ghost { border-color: transparent; }
.btn-cancel:hover:not(:disabled) { background: rgba(36,20,48,.08); }
.btn-cancel:active:not(:disabled) { background: rgba(36,20,48,.14); }
.btn-cancel:focus-visible { outline:2px solid #241430;outline-offset:2px; }
.btn-cancel:disabled { opacity: .45; cursor: not-allowed; }
</style><button type="button" class="px-5 py-2.75 text-sm font-semibold bg-transparent cursor-pointer disabled:opacity-45 disabled:cursor-not-allowed hover:bg-black/5 active:bg-black/10 btn-cancel-tw btn-cancel-tw--bordered" style="border:2px solid #241430;color:#241430;border-radius:10px">Cancel</button>
<style>
.btn-cancel-tw--ghost { border-color: transparent !important; }
.btn-cancel-tw--bordered:focus-visible { outline:2px solid #241430;outline-offset:2px; }
</style>export function CancelButton({
label = "Cancel",
variant = "bordered",
bg = "#241430",
radius = 10,
disabled = false,
}) {
const ghost = variant === "ghost";
return (
<button
type="button"
disabled={disabled}
style={{
padding: "11px 20px",
borderRadius: radius,
border: `2px solid ${ghost ? "transparent" : bg}`,
background: "transparent",
color: bg,
font: "600 15px/1 system-ui, sans-serif",
cursor: disabled ? "not-allowed" : "pointer",
opacity: disabled ? 0.45 : 1,
}}
>
{label}
</button>
);
}