defmodule PyrauiWeb.DocsLive.ButtonDocs do use PyrauiWeb, :html def render(assigns) do ~H"""

Button

Button component with multiple variants and states.

Examples

Primary Secondary Ghost Danger Success

    <.button variant={:primary}>Primary</.button>
    <.button variant={:secondary}>Secondary</.button>
    <.button variant={:ghost}>Ghost</.button>
    

Props

Prop Type Default Description
variant :primary | :secondary | :ghost | :danger | :success :primary Button style variant
size :sm | :md | :lg | :xl :md Button size
disabled boolean false Disable the button
loading boolean false Show loading spinner
""" end end