English | 简体中文
-
@wyg-plus/icons-svg
raw svg files -
@wyg-plus/icons-vue
vue components
MIT License © 2024-PRESENT Wyg Plus
npm install @wyg-plus/icons-vue
- 一:
// Introduce the component corresponding to the icon name
import { TravelBooking } from '@wyg-plus/icons-vue'
- 二:
// Introducing the WygIcon component
import { WygIcon } from '@wyg-plus/icons-vue'
<component :is="TravelBooking" color="#41b883" size="20" />
<TravelBooking color="#41b883" size="20" />
<wyg-icon color="#41b883" size="20" >
<TravelBooking></TravelBooking>
</wyg-icon>
<wyg-icon color="#41b883" :size="20" class="wyg-travel-booking">
This is using class to define the icon
</wyg-icon>
<span class="wyg-travel-booking" style="font-size: 60px;color: #41b883;"></span>
<button class="wyg-travel-booking"></button>
<div class="wyg-travel-booking"></div>