Actions
Button
One action, a clear response.
Live preview
InteractiveTry hover, press, and keyboard focus
Usage · React / TSX
"use client";
import { Button } from "@mdopeace/ui/Button";
import { FaHeart } from "react-icons/fa6";
export default function Example() {
function handleClick() {
console.info("Button activated");
}
return (
<Button
variant="primary"
size="md"
startIcon={<FaHeart />}
onClick={handleClick}
>
Make something
</Button>
);
}Complete example using the shared UI package.
Why this works
Every solid button uses the same 3px depth, whatever its size. Ghost actions stay flat. Hover compresses depth; pressing completes the movement.
Try it with a keyboard
Tab to the button, then activate it with Enter or Space. Disabled and loading states prevent activation.