Component
Components
  • 🏠turbotech-component
  • 🚀Installations
  • 📦Required Package
  • 📦Laravel-Modules Style
  • ________________________________
  • Data Displays
    • Form View
      • Phone Formatted
    • Charts
      • Line Chart
      • Bar Chart
      • Pie Chart
      • Doughnut Chart
      • Polar Area Chart
      • Radar Chart
      • Scatter Chart
    • Stats
      • Trending
      • Simple
      • Brand
  • Elements
    • Buttons
      • Default Button
      • Primary Button
      • Secondary Button
      • Warning Button
      • Danger Button
      • Success Button
    • Forms Input
      • English Name
      • Khmer Name
      • Phone
      • URL
      • Camel URL
      • Email
  • Headings
    • Card Heading
    • Header
  • Layouts
    • Panels
      • Main Card
Powered by GitBook
On this page
  • Params
  • Components Laravel

Was this helpful?

  1. Elements

Buttons

Sample Button with customizable

PreviousElementsNextDefault Button

Last updated 1 year ago

Was this helpful?

Params

Param
value
Use for

type

tailwindcss class name

divide columns for contents

class

tailwindcss classes

optional style

size

tailwindcss class name

text-sizing

onclick

optional function

optional function

onmouseover

optional function

optional function

ripple

ripple effects

Components Laravel

<x-button type="button" 
    class="text-white bg-primary-500" 
    ripple
    >
    Submit
</x-button>
<x-button:primary 
    type="button" 
    ripple
    >
    Submit
</x-button:primary>
<x-button:secondary 
    type="button" 
    ripple
>
    Submit
</x-button:secondary>
<x-button:warning 
    type="button" 
    ripple
>
    Submit
</x-button:warning>
<x-button:danger 
    type="button" 
    ripple
>
    Submit
</x-button:danger>
<x-button:success 
    type="button" 
    ripple
>
    Submit
</x-button:success>
Default Button
Primary Button
Secondary Button
Warning Button
Danger Button
Success Button