Buttons

The e-button component offers a variety of button types and sizes to meet your design needs. There are lots of button types for the best fits design of your application.

view on GitHub

Button Sizes Variant

Here are the available size options: x-small small large x-large

Icon

Using the icon property property you can transform the layout of the component. You can learn more about how icons work on the Icons page

Prepend and Append icons

You have the flexibility to position icons on either the left or right side of the button.

Custom icon size

Using width or height you can change the default size of the component

API Reference

Props

Explore the available props for the form component

PropertyDescriptionTypeDefault
disabledchange button style and removes the ability to click or target the component.booleanfalse
toDenotes the target route of the link.RouteLocationRawfalse
append-iconname or configuration of the icon to be displayed to the right of the componentArray IconPath stringundefined
prepend-iconname or configuration of the icon to be displayed to the left of the component Array IconPath stringundefined
iconicon name to be rendered inside the button.stringnull
rippleApplies the v-ripple directive.booleanfalse
colorApplies specified color to the component - supports only utility colors (for example primary or secondary)stringundefined
loadingchange button style and shows a loading icon.booleanfalse
stackedDisplays the button as a flex-column.booleanfalse
hover-colorApplies a specific color for the hover event to the component - supports only utility colors (for example primary or secondary)stringundefined
depressedremove the box-shadow propertybooleanfalse
textremoves the shadow from the component and inverts the color and background-color valuesbooleanfalse
outlinedremove the box-shadow property and adds a borderbooleanfalse
textremoves the shadow from the component and inverts the color and background-color valuesbooleanfalse
blockmakes the component take up the entire width of the containerbooleanfalse
x-smallapplies the size configured in the sass variables for the x-small valuebooleanfalse
smallapplies the size configured in the sass variables for the small valuebooleanfalse
largeapplies the size configured in the sass variables for the large valuebooleanfalse
x-largeapplies the size configured in the sass variables for the x-large valuebooleanfalse
typeThe type attribute specifies the type of button.stringbutton
roundedapplies a predefined border-radius to the component. booleanfalse

SASS Variables

NameDefault
$btn-border-radius$border-radius-root !default;
$btn-font-weight500 !default;
$btn-letter-spacing0.089em !default;
$btn-border-stylesolid !default;
$btn-border-width2px !default;
$btn-rounded-border-radius28px !default;
$btn-text-transformuppercase !default;
$btn-transition-duration0.28s !default;
$btn-states
  map-merge(
  (
  "focus": 0.05,
  "hover": 0.1,
  "active": 0.3,
  ),()) !default;
$btn-font-sizes
map-merge(
  (
    "x-small": 0.625rem,
    "small": 0.75rem,
    "default": 0.875rem,
    "large": 0.875rem,
    "x-large": 1rem,
  ), ()) !default;
$btn-height
map-merge(
  (
    "x-small": 2.187rem,
    "small": 2.5rem,
    "default": 3rem,
    "large": 3.125rem,
    "x-large": 3.4375rem,
  ), ()) !default;
$icon-font-sizes
map-merge(
  (
    "x-small": 1.25rem,
    "small": 1.3rem,
    "default": 1.625rem,
    "large": 2rem,
    "x-large": 2.375rem,
  ), ()) !default;