Sign Up

Button Component

A <Button> acts just like a link, but is styled like a button

Example

Syntax

<Button href="https://www.example.com">My button</Button>

Size

You can adjust the button's size with the size=".." attribute. The size must be sm, md, or lg.

<Button size="lg" href="/">My button</Button>

md (default)
My button

Variant

You can change the style of the button with the variant=".." attribute.

<Button variant="secondary" href="/">My button</Button>

primary (default)
My button

secondary
My button

outline
My button

ghost
My button

Width

You can make the button full width by specifying width="full".

<Button width="full" href="/">My button</Button>
My button

Target

If you want your button to open the link in a new tab, you can set target="_blank".

<Button target="_blank" href="/">My button</Button>

Was this page helpful?