I am currently working on a vuetify application that has a multitude of buttons, and I am looking to change them all to have a rounded style without having to individually add the property to each one. Is there a way to achieve this using themes or presets?
Adding the following style works:
.v-btn{
border-radius:28px!important;
}
However, this approach limits my ability to use normal buttons in the future.
Creating a custom component like my-rounded-button
is also an option. However, if I want to set properties globally for other components, I would need to create a custom component for every element in vuetify. Additionally, if I decide to change all buttons in the middle of the project, I would still need to modify all button names from v-btn
to my-rounded-button
.
My goal is to have the rounded property automatically set to true for all v-btn
components, with the option to toggle it off by setting :rounded="false"
when necessary.