Button
A special button component that can receive Melt UI builders for use with the `asChild` prop.
Structure
<script lang="ts">
import { Button } from "bits-ui";
</script>
<Button.Root />
<script lang="ts">
import { Button } from "bits-ui";
</script>
<Button.Root />
Component API
Root
A special button component that can receive Melt UI builders for use with the `asChild` prop.
Prop | Default | Type/Description |
---|---|---|
builders | [] | Builder[] An array of melt builders to be applied to the button. |
href | - | string An optional prop that when passed converts the button into an anchor tag. |
🚧 UNDER CONSTRUCTION 🚧