marclayuiv0.4.0
Components

Button

Extruded clay buttons that press inward on click. Six variants mapped to the theme tones, three sizes, plus loading and disabled states.

tsx
import { Button } from "marclayui";

Variants

Sizes & block

Loading & disabled

Links

Segmented group

Keyboard tip: buttons respond to Enter and Space; anchors styled as buttons respond to Enter only — native behavior, preserved.
PropTypeDefaultDescription
variant"primary" | "secondary" | "accent" | "soft" | "ghost" | "danger""soft"Visual style. Tones follow the theme colors.
size"sm" | "md" | "lg""md"Padding and radius scale.
loadingbooleanfalseShows a spinner and blocks interaction.
blockbooleanfalseFull-width button.
hrefstring—When set, renders a styled anchor instead of a button.
…restButtonHTMLAttributes | AnchorHTMLAttributes—Native attributes are forwarded to the rendered element.