Buttons

Buttons allow users to take actions and make choices, with a single click.

Primary Button

The Primary Button description from Figma goes here

1<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> 2 Primary Button 3 </button>

Secondary Button

The Secondary Button description from Figma goes here

1<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> 2 Secondary Button 3 </button>

Custom Type Button

The Outline Danger Button description from Figma goes here

1<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> 2 Warning Button 3 </button>

Danger Button

The Danger Button description from Figma goes here

1<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> 2 Danger Button 3 </button>

Dark Button

The Dark Button description from Figma goes here

1<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> 2 Dark Button 3 </button>

Light Button

The Light Button description from Figma goes here

1<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> 2 Light Button 3 </button>

Outline Secondary Button

The Outline Secondary Button description from Figma goes here

1<button class="bg-blue-500 hover:bg-blue-700 text-white font-bold py-2 px-4 rounded"> 2 Outline Button 3 </button>

Small Button

1<button class="btn btn-primary btn-sm">Button text</button>

Medium Button

1<button class="btn btn-primary btn-md">Button text</button>

Large Button

1<button class="btn btn-primary btn-lg">Button text</button>

Accessibility

Make it clear what this button does for the user.

DO

  • Make it clear what this button does for the user.

  • Use at most two buttons in one group.

  • Attribute indicating if the element should be.

DON'T

  • Use more than two words for call to action.

  • First letter of each sentence defaults to a capital letter.

  • Attribute indicating if the element should be.


Classes

Complete list of all CSS classes for the component.

NameClass
Primary Buttonbtn btn-primary
Secondary Buttonbtn btn-secondary
Custom Type Buttonbtn btn-custom-type
Danger Buttonbtn btn-danger
Dark Buttonbtn btn-dark
Light Buttonbtn btn-light
Outline Secondary Buttonbtn btn-outline-secondary
Small Buttonbtn btn-small
Medium Buttonbtn btn-medium
Large Buttonbtn btn-large