Having trouble getting help?
Contact Support
Contact Support
Create a rounded button in Vue Button component
11 Jun 20241 minute to read
Button with rounded corner can be achieved by adding border-radius
property.
In the following example, e-round-corner
class is added with border-radius
as 5px
.
<template>
<ejs-button cssClass='e-round-corner'>Button</ejs-button>
</template>
<script setup>
import { ButtonComponent as EjsButton } from '@syncfusion/ej2-vue-buttons';
import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(true);
</script>
<style>
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
.e-round-corner {
border-radius: 5px;
}
button {
margin: 25px 5px 20px 20px;
}
</style>
<template>
<ejs-button cssClass='e-round-corner'>Button</ejs-button>
</template>
<script>
import { ButtonComponent } from '@syncfusion/ej2-vue-buttons';
import { enableRipple } from '@syncfusion/ej2-base';
enableRipple(true);
export default {
name: "App",
components: {
"ejs-button":ButtonComponent
},
}
</script>
<style>
@import '../node_modules/@syncfusion/ej2-base/styles/material.css';
@import '../node_modules/@syncfusion/ej2-buttons/styles/material.css';
.e-round-corner {
border-radius: 5px;
}
button {
margin: 25px 5px 20px 20px;
}
</style>