Buttons
Use Swarup's custom button styles for actions in forms, dialogs, and more with support for multiple sizes, states, and more.
Examples#
Very basic button which has a color of your theme
The .sw-btn classes are designed to be used with the <button> element. However, you can also use these classes on
<a> or <input> elements (though some browsers may apply a slightly different rendering).
Types of Buttons#
Swarup includes several predefined button styles, each serving its own semantic purpose, with a few extras thrown in for more control.
Button Sizes#
Button Dropdown#
Default Button Dropdown#
Button Dropdown Lefted#
Button Dropdown Double Sided#
Button Groups#
Button Shadow#
Class Table#
| Classes | Description |
|---|---|
| .sw-btn * | Base Button class creates a default solid button |
| .sw-btn-outline | For button with outline |
| .sw-btn-text | For button with no outline |
| .sw-btn-secondary | For button with secondary color |
| .sw-btn-surface | For button with surface color |
| .sw-btn-lg | For large size button |
| .sw-btn-md | For medium size buttons bigger than default |
| .sw-btn-sm | For small size button |
| .sw-btn-group | For grouping serval button together |
| .sw-btn-dropdown | For adding dropdown functionalite to normal button |