Docs
Button
Button
Displays a button or a component that looks like a button.
Usage
import { Button } from '@bit/ui'<Button variant='outline'>Button</Button>Link
You can use the buttonVariants helper to create a link that looks like a button.
import { buttonVariants } from '@bit/ui'<Link className={buttonVariants({ variant: 'outline' })}>Click here</Link>Alternatively, you can set the asChild parameter and nest the link component.
<Button asChild>
<Link href='/login'>Login</Link>
</Button>Examples
Variants
Outline Variants
Sizes
Link
Icon
With Icon
Loading
As Child
Used to wrap an element and pass the corresponding button styles down to the child element.