Skip to content

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">
		<VueIcon name="bs:calendar-4-range" class="icon" />
		<span>Select Date</span>
	</div>
</template>

<script setup>
import VueIcon from '@kalimahapps/vue-icons/VueIcon';
</script>

<style scoped>
.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>
Select Date

With Tailwind

vue
<template>
	<div
		class="bg-white
			hover:bg-gray-100
			border
			border-gray-300
			cursor-pointer
			inline-flex
			justify-center
			items-center
			p-2
			rounded
			text-black"
	>
		<VueIcon
			name="bs:calendar-4-range"
			class="mr-2 text-indigo-500 text-xl"
		/>
		<span>Select Date</span>
	</div>
</template>

<script setup>
import VueIcon from '@kalimahapps/vue-icons/VueIcon';
</script>
Select Date