css
Description
Optional. Adds a custom CSS class to the iconUsage
css?: string;
Example
<script setup>
import { Icon } from "@svar-ui/vue-core";
</script>
<template>
<!-- apply a custom size and color through a CSS class -->
<Icon css="large-red" title="Delete" :onclick="() => alert('Deleted')" />
</template>
<style scoped>
.large-red {
font-size: 32px;
color: crimson;
}
</style>