Button
A special button component that can receive Melt UI builders for use with the `asChild` prop.
Structure
API Reference
A special button component that can receive Melt UI builders for use with the asChild
prop.
Property | Type | Description |
---|---|---|
builders | Builder[] | An array of melt builders to be applied to the button. Default:
[] |
href | string | An optional prop that when passed converts the button into an anchor tag. Default:
undefined |
Data Attribute | Value | Description |
---|---|---|
data-button-root | —— | Present on the button element. |