Button

A component that can switch between a button and an anchor tag based on the `href` prop.

	<script lang="ts">
  import { Button } from "bits-ui";
</script>
 
<Button.Root
  class="inline-flex h-12 items-center justify-center rounded-input bg-dark
	px-[21px] text-[15px] font-semibold text-background shadow-mini
	hover:bg-dark/95 active:scale-[0.98] active:transition-all"
>
  Unlimited
</Button.Root>

Structure

	<script lang="ts">
  import { Button } from "bits-ui";
</script>
 
<Button.Root />

API Reference

Button.Root

A component that can switch between a button and an anchor tag based on the href/type props.

Property Details
href
disabled
ref
children
Data Attribute Details
data-button-root