Skip to content

Button

The Button component renders a button-styled anchor tag with atomic CSS utilities. Perfect for call-to-action links in emails.

Usage

blade
<x-envelop::button
  href="https://example.com"
  class="bg-blue-600 text-white px-8 py-4 rounded-lg"
>
  Click Here
</x-envelop::button>

Props

PropTypeRequiredDefaultDescription
hrefstringYes-URL the button links to
targetstringNo'_blank'Link target attribute
classstringNo''Atomic CSS utility classes

Released under the MIT License.