Styling
You can change the color and size of the icons by adding style or class to the icon component.
With CSS
vue
<template>
<div class="button">
<BsCalendar4Range class="icon" />
<span>Select Date</span>
</div>
</template>
<script setup>
import { BsCalendar4Range } from '@kalimahapps/vue-icons';
</script>
<style scoped lang="scss">
.button {
display: inline-flex;
align-items: center;
justify-content: center;
padding: 0.5rem 1rem;
border: 1px solid #ccc;
border-radius: 0.25rem;
background-color: #fff;
color: #000000;
cursor: pointer;
/* Change color and size of the icon */
.icon {
color: #c9330a;
font-size: 1.3em;
margin-right: 0.5em;
}
&:hover {
background-color: #eee;
}
}
</style>
With Tailwind
vue
<template>
<div class="inline-flex items-center justify-center p-2 border border-gray-300 rounded bg-white text-black cursor-pointer hover:bg-gray-100">
<BsCalendar4Range class="text-indigo-500 text-xl mr-2" />
<span>Select Date</span>
</div>
</template>
<script setup>
import { BsCalendar4Range } from '@kalimahapps/vue-icons';
</script>
Select Date