<div>
    <button class="btn gap-2">
        <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" />
        </svg>
        Button
    </button>

    <button class="btn gap-2">
        Button
        <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor">
            <path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" />
        </svg>
    </button>

</div>
<div>
  @jrmc.button({ class: 'gap-2' })
    <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" /></svg>
    Button
  @end

  @jrmc.button({ class: 'gap-2' })
    Button
    <svg xmlns="http://www.w3.org/2000/svg" class="h-6 w-6" fill="none" viewBox="0 0 24 24" stroke="currentColor"><path stroke-linecap="round" stroke-linejoin="round" stroke-width="2" d="M4.318 6.318a4.5 4.5 0 000 6.364L12 20.364l7.682-7.682a4.5 4.5 0 00-6.364-6.364L12 7.636l-1.318-1.318a4.5 4.5 0 00-6.364 0z" /></svg>
  @end
</div>

Button

Doc : daisyui button

Buttons allows user to take actions or make choices.

Class name Type
btn Component Button
btn-primary Modifier Button with primary color
btn-secondary Modifier Button with secondary color
btn-accent Modifier Button with accent color
btn-info Modifier Button with info color
btn-success Modifier Button with success color
btn-warning Modifier Button with warning color
btn-error Modifier Button with error color
btn-ghost Modifier Button with ghost style
btn-link Modifier Button styled as a link
btn-outline Modifier Transparent Button with colored border
btn-active Modifier Force button to show active state
btn-disabled Modifier Force button to show disabled state
glass Modifier Button with a glass effect
loading Modifier Shows loading spinner
no-animation Modifier Disables click animation
btn-lg Responsive Large button
btn-md Responsive Medium button (default)
btn-sm Responsive Small button
btn-xs Responsive Extra small button
btn-wide Responsive Wide button (more horizontal padding)
btn-block Responsive Full width button
btn-circle Responsive Circle button with a 1:1 ratio
btn-square Responsive Square button with a 1:1 ratio

/!\ Deprecated

Button group daisyUI >= 3, use join