Skip to content

Button

EBtn comes in various colors and designs and enables users to trigger an activity with just one press. Demo Here

Usage

vue
<EBtn>Im a Button</EBtn>

Props

For EBtn component, the following props are available:

PropTypeDefaultNote
disabledBooleanfalseDisables the btn.
typeString"button"Html type attribute.
loadingBooleanfalseDisplays progress bar.
activeBooleanfalseCreates an activated button.
roundedBooleanfalseIt creates a circular btn.
squareBooleanfalseRemoves rounded corners of the element.
widthString-Sets the component's width.
heightString-Sets the component's height.
hrefString-This attribute creates a linked btn.
to[String, Object]-This attribute creates a linked btn.
targetString"_self"It specifies where to open the linked document. _self opens the linked document in the same frame as it was clicked.
sizeString"md"The EBtn element has three predefined sizes: sm, md, lg.
blockBooleanfalseThe EBtn element expands to take up all of the available space.
customColorString-A custom color in rgb format is applied to the btn (e.g, customColor="101, 89, 204").
spinnerString"beat"Specify Spinner element. @values: beat, clip, moon, bounce .
colorString"primary"The given color is applied to the btn - utility colors are supported (e.g primary or danger). you'll find a list of built-in classes on the src/styles/_vars.scsspage.
iconBtnObject-By using iconBtn prop the EBtn element will be visualized in an Icon form. More Info about icons here.
appendIconObject-Inserts a custom EIcon element to the btn that is located after the content. More Info here.
prependIconObject-Inserts a custom EIcon element to the btn that is located before the content. More Info here.
variantString"fill"The EBtn element can be represented in two ways: fill, alternate, outline ,text. alternate displays the btn with a light background, outline draws a border around an element and text displays the btn with only text and no background color.

Emits

The EBtn component contains following emits.

EmitDescription
clickEmits click event.

Slots

The EBtn component provides a default slot that enable you to customize the content.

SlotDescription
defaultThe default Vue slot.

COPYRIGHT