Button

A component used to create buttons that can be used to trigger actions or navigate to other pages.

Preview

Learn More

Props

PropTypeDefaultDescription
textstringundefinedThe button text
hrefstringrequiredThe URL to navigate to
iconstringundefinedLucide icon name (e.g. "MoveUpRight")
sizestring"md"Button size: "sm", "md", or "lg"
targetstringundefinedLink target (e.g. "_blank")
variationstring"primary"Button style: "primary", "accent", or "outline"

Output Markdown

<Button
  text="Learn More"
  href="https://learn.example.com"
  icon="MoveUpRight"
  size="md"
  target="_blank"
  variation="primary"
/>

Published on Dec 14, 2024