Button

This section previews the Button component.

I have implemented the button component into markdown which is ready to use.

Preview

Learn More

Props

PropTypeDefaultDescription
textstring""The value of text button.
hrefstring""The value of url button.
iconstringnullThe value of button icon render from lucide.
sizestring"sm, md, lg"The value of size button.
targetstring"_blank"By default target _blank
variationstring"primary"By default variation is Primary

Code

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

Published on Dec 14, 2024