Inputs
Button
A native button with three visual weights. Forwards its ref and spreads every standard button attribute, so it drops into forms, dialogs, and toolbars without a wrapper.
ButtonPreview
Usage
tsx
import { Button } from "@vesture/react";
function Example() {
return (
<Button variant="secondary" onClick={handleSave}>
Save changes
</Button>
);
}Props
| Prop | Type | Default | Description |
|---|---|---|---|
| variant | "primary" | "secondary" | "ghost" | "primary" | Visual weight. |
| ...rest | ButtonHTMLAttributes<HTMLButtonElement> | — | Spread onto the native <button> — disabled, type, onClick, etc. |