Skip to content

Button

A clickable element for triggering actions or submitting forms.

Terminal window
bunx bejamas add button
---
import Button from '@bejamas/ui/components/Button.astro';
---
<Button>Click me</Button>

You can use the as prop to render the component as an anchor.

---
import Button from '@bejamas/ui/components/Button.astro';
---
<Button as="a" href="https://bejamas.com">Click me</Button>
PropTypeDefault
asHTMLTag"button"
variant| "default" | "destructive" | "outline" | "secondary" | "ghost" | "link""default"
size"default" | "sm" | "lg" | "icon""default"
Built at Bejamas