Search results

Customize input and anchor elements in Vue Button component

08 Dec 2022 / 1 minute to read

You can customize the appearance of the input and anchor elements using predefined styles through the class property. In the following code snippet, the input element is customized as a link Button by setting the e-btn e-link class, and the anchor element is customized as a primary Button by setting the e-btn e-primary class.

Copied to clipboard
        <input type='button' value='Input Button' class='e-btn e-link' />
        <a id='anchorbtn' class='e-btn e-primary' href='#'>Google</a>

import Vue from 'vue';
import { ButtonPlugin } from '@syncfusion/ej2-vue-buttons';
import { enableRipple } from '@syncfusion/ej2-base';


export default {}

  @import '../node_modules/@syncfusion/ej2-base/styles/material.css';
  @import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';