Buttons

Use LCUI’s custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.

Examples

LCUI includes several predefined button styles, each serving its own semantic purpose, with a few extras thrown in for more control.

  1. <w type="button" class="btn">Default</w>
  2. <w type="button" class="btn btn-primary">Primary</w>
  3. <w type="button" class="btn btn-secondary">Secondary</w>
  4. <w type="button" class="btn btn-success">Sucesss</w>
  5. <w type="button" class="btn btn-danger">Danger</w>
  6. <w type="button" class="btn btn-warning">Warning</w>
  7. <w type="button" class="btn btn-info">Info</w>
  8. <w type="button" class="btn btn-light">Light</w>
  9. <w type="button" class="btn btn-dark">Dark</w>
  10. <w type="button" class="btn btn-link">link</w>

Outline buttons

In need of a button, but not the hefty background colors they bring? Replace the default modifier classes with the .btn-outline-* ones to remove all background images and colors on any button.

  1. <w type="button" class="btn btn-outline-primary">Primary</w>
  2. <w type="button" class="btn btn-outline-secondary">Secondary</w>
  3. <w type="button" class="btn btn-outline-success">Success</w>
  4. <w type="button" class="btn btn-outline-danger">Danger</w>
  5. <w type="button" class="btn btn-outline-warning">Warning</w>
  6. <w type="button" class="btn btn-outline-info">Info</w>
  7. <w type="button" class="btn btn-outline-light">Light</w>
  8. <w type="button" class="btn btn-outline-dark">Dark</w>

Sizes

Fancy larger or smaller buttons? Add .btn-lg or .btn-sm for additional sizes.

  1. <w type="button" class="btn btn-lg">Large button</w>
  2. <w type="button" class="btn btn-primary btn-lg">Large button</w>
  3. <w type="button" class="btn btn-link btn-lg">Large button</w>
  1. <w type="button" class="btn btn-sm">Small button</w>
  2. <w type="button" class="btn btn-primary btn-sm">Small button</w>
  3. <w type="button" class="btn btn-link btn-sm">Small button</w>

Create block level buttons—those that span the full width of a parent—by adding .btn-block.

  1. <w type="button" class="btn btn-primary btn-lg btn-block">Block level button</w>
  2. <w type="button" class="btn btn-lg btn-block">Block level button</w>
  3. <w type="button" class="btn btn-link btn-lg btn-block">Block level button</w>