<template>
<div class="component-card-demo-wrap">
<TsSwitch v-model="slotValue" actionBg="transparent" activeColor="var(--bussiness-bg-gray)" inactiveColor="var(--bussiness-bg-gray)">
<template #active>
<TsIcon name="SunIcon" color="#ff2525" fontSize="16px" />
</template>
<template #inactive>
<TsIcon name="MoonIcon" color="#b6b6b6" fontSize="16px" />
</template>
</TsSwitch>
</div>
</template>
<script setup lang="ts">
import { TsSwitch, TsIcon } from 'tui';
import { ref } from 'vue';
const slotValue = ref(false);
</script>