Docs Quickstart Figma Flowbite
1.3.0
Components Button

Button

Use the button component inside forms, as links with support for multiple styles, colors, sizes, gradients, and shadows


Default button

Show on Github
DefaultDarkLightSuccessFailureWarningPurple
html
typescript
<flowbite-button>Default</flowbite-button>
<flowbite-button color="dark">Dark</flowbite-button>
<flowbite-button color="light">Light</flowbite-button>
<flowbite-button color="green">Success</flowbite-button>
<flowbite-button color="red">Failure</flowbite-button>
<flowbite-button color="yellow">Warning</flowbite-button>
<flowbite-button color="purple">Purple</flowbite-button>

Button pills

Show on Github
Dark Light Success Failure Warning Purple
html
typescript
<flowbite-button
  [isPill]="true"
  color="dark">
  Dark
</flowbite-button>
<flowbite-button
  [isPill]="true"
  color="light">
  Light
</flowbite-button>
<flowbite-button
  [isPill]="true"
  color="green">
  Success
</flowbite-button>
<flowbite-button
  [isPill]="true"
  color="red">
  Failure
</flowbite-button>
<flowbite-button
  [isPill]="true"
  color="yellow">
  Warning
</flowbite-button>
<flowbite-button
  [isPill]="true"
  color="purple">
  Purple
</flowbite-button>

Gradient monochrome

Show on Github
InfoSuccessCyanTealLimeFailurePinkPurple
html
typescript
<flowbite-button gradientMonochrome="blue">Info</flowbite-button>
<flowbite-button gradientMonochrome="green">Success</flowbite-button>
<flowbite-button gradientMonochrome="cyan">Cyan</flowbite-button>
<flowbite-button gradientMonochrome="teal">Teal</flowbite-button>
<flowbite-button gradientMonochrome="lime">Lime</flowbite-button>
<flowbite-button gradientMonochrome="red">Failure</flowbite-button>
<flowbite-button gradientMonochrome="pink">Pink</flowbite-button>
<flowbite-button gradientMonochrome="purple">Purple</flowbite-button>

Gradient duo-tone

Show on Github
Purple to BlueCyan to BlueGreen to BluePurple to PinkPink to OrangeTeal to LimeRed to Yellow
html
typescript
<flowbite-button gradientDuoTone="purpleToBlue">Purple to Blue</flowbite-button>
<flowbite-button gradientDuoTone="cyanToBlue">Cyan to Blue</flowbite-button>
<flowbite-button gradientDuoTone="greenToBlue">Green to Blue</flowbite-button>
<flowbite-button gradientDuoTone="purpleToPink">Purple to Pink</flowbite-button>
<flowbite-button gradientDuoTone="pinkToOrange">Pink to Orange</flowbite-button>
<flowbite-button gradientDuoTone="tealToLime">Teal to Lime</flowbite-button>
<flowbite-button gradientDuoTone="redToYellow">Red to Yellow</flowbite-button>

Gradient outline

Show on Github
Purple to Blue Cyan to Blue Green to Blue Purple to Pink Pink to Orange Teal to Lime Red to Yellow
html
typescript
<flowbite-button
  fill="outline"
  gradientDuoTone="purpleToBlue">
  Purple to Blue
</flowbite-button>
<flowbite-button
  fill="outline"
  gradientDuoTone="cyanToBlue">
  Cyan to Blue
</flowbite-button>
<flowbite-button
  fill="outline"
  gradientDuoTone="greenToBlue">
  Green to Blue
</flowbite-button>
<flowbite-button
  fill="outline"
  gradientDuoTone="purpleToPink">
  Purple to Pink
</flowbite-button>
<flowbite-button
  fill="outline"
  gradientDuoTone="pinkToOrange">
  Pink to Orange
</flowbite-button>
<flowbite-button
  fill="outline"
  gradientDuoTone="tealToLime">
  Teal to Lime
</flowbite-button>
<flowbite-button
  fill="outline"
  gradientDuoTone="redToYellow">
  Red to Yellow
</flowbite-button>

Outline buttons

Show on Github
Default Dark Success Failure Warning Purple
html
typescript
<flowbite-button fill="outline">Default</flowbite-button>
<flowbite-button
  fill="outline"
  color="dark">
  Dark
</flowbite-button>
<flowbite-button
  fill="outline"
  color="green">
  Success
</flowbite-button>
<flowbite-button
  fill="outline"
  color="red">
  Failure
</flowbite-button>
<flowbite-button
  fill="outline"
  color="yellow">
  Warning
</flowbite-button>
<flowbite-button
  fill="outline"
  color="purple">
  Purple
</flowbite-button>

Button sizes

Show on Github
Extra smallSmallBaseLargeExtra large
html
typescript
<flowbite-button size="xs">Extra small</flowbite-button>
<flowbite-button size="sm">Small</flowbite-button>
<flowbite-button size="md">Base</flowbite-button>
<flowbite-button size="lg">Large</flowbite-button>
<flowbite-button size="xl">Extra large</flowbite-button>

Button with icon

Show on Github
Buy now Choose plan
html
typescript
<flowbite-button>
  <flowbite-icon
    svgIcon="outline:cart"
    class="mr-2 -ml-1 h-5 w-5" />
  Buy now
</flowbite-button>
<flowbite-button>
  Choose plan
  <flowbite-icon
    svgIcon="outline:arrow-right"
    class="ml-2 -mr-1 h-5 w-5" />
</flowbite-button>

Button with label

Show on Github
Messages 2
html
typescript
<flowbite-button>
  Messages
  <flowbite-badge
    [isIconOnly]="true"
    class="ml-2">
    2
  </flowbite-badge>
</flowbite-button>

Icon buttons

Show on Github
html
typescript
<flowbite-button>
  <flowbite-icon
    svgIcon="outline:arrow-right"
    class="h-5 w-5" />
</flowbite-button>
<flowbite-button [isPill]="true">
  <flowbite-icon
    svgIcon="outline:arrow-right"
    class="h-5 w-5" />
</flowbite-button>
<flowbite-button fill="outline">
  <flowbite-icon
    svgIcon="outline:arrow-right"
    class="h-5 w-5" />
</flowbite-button>
<flowbite-button
  fill="outline"
  [isPill]="true">
  <flowbite-icon
    svgIcon="outline:arrow-right"
    class="h-5 w-5" />
</flowbite-button>

Disabled

Show on Github
Disabled button Disabled button
html
typescript
<flowbite-button [isDisabled]="true">Disabled button</flowbite-button>
<flowbite-button
  color="blue"
  [isDisabled]="true">
  Disabled button
</flowbite-button>
Flowbite

© 2019-2024 Flowbite™ is a registered trademark. All Rights Reserved.