How to customize input and anchor elements in Angular Button

25 Sep 20262 minutes 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 Angular 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.

import { NgModule } from '@angular/core'
import { BrowserModule } from '@angular/platform-browser'
import { ButtonModule } from '@syncfusion/ej2-angular-buttons'
import { enableRipple } from '@syncfusion/ej2-base'



import { Component } from '@angular/core';

@Component({
imports: [
        
        ButtonModule
    ],


standalone: true,
    selector: 'app-root',
    template:  `<div class="e-section-control">
                <div>
                    <input type="button" id="inputbtn" value="Input Button" class="e-btn e-link">
                </div><br>
                <div>
                    <a id="anchorbtn" class="e-btn e-primary" href="#">Google</a>
                </div>
                </div>`
})

export class AppComponent { }
import { bootstrapApplication } from '@angular/platform-browser';
import { AppComponent } from './app.component';
bootstrapApplication(AppComponent).catch((err) => console.error(err));