Polish Tessera web canvas: multi-tab vault UI
Vault ring scene, orbits editor, wormhole pairing, decay presets, reconstitute grace UI, shared components, and API wiring per SPEC.
This commit is contained in:
26
web/src/components/ui/Button.tsx
Normal file
26
web/src/components/ui/Button.tsx
Normal file
@@ -0,0 +1,26 @@
|
||||
import type { ButtonHTMLAttributes } from "react";
|
||||
|
||||
const variants = {
|
||||
primary:
|
||||
"bg-wormhole-violet/25 text-star-100 border-wormhole-violet/40 hover:bg-wormhole-violet/35",
|
||||
ghost: "bg-space-800/60 text-star-200 border-space-700 hover:bg-space-800",
|
||||
danger: "bg-orbit-red/15 text-orbit-red border-orbit-red/35 hover:bg-orbit-red/25",
|
||||
success: "bg-orbit-green/15 text-orbit-green border-orbit-green/35 hover:bg-orbit-green/25",
|
||||
warn: "bg-orbit-amber/15 text-orbit-amber border-orbit-amber/40 hover:bg-orbit-amber/25",
|
||||
};
|
||||
|
||||
export function Button({
|
||||
variant = "ghost",
|
||||
className = "",
|
||||
...props
|
||||
}: ButtonHTMLAttributes<HTMLButtonElement> & {
|
||||
variant?: keyof typeof variants;
|
||||
}) {
|
||||
return (
|
||||
<button
|
||||
type="button"
|
||||
className={`px-4 py-2.5 rounded-xl text-sm font-medium border transition-colors disabled:opacity-40 ${variants[variant]} ${className}`}
|
||||
{...props}
|
||||
/>
|
||||
);
|
||||
}
|
||||
Reference in New Issue
Block a user