forked from opentiny/tiny-vue
21 lines
449 B
Vue
21 lines
449 B
Vue
<template>
|
|
<tiny-switch>
|
|
<template #active-icon>
|
|
<TinyIconArrowLeft />
|
|
</template>
|
|
<template #inactive-icon>
|
|
<TinyIconArrowRight />
|
|
</template>
|
|
</tiny-switch>
|
|
</template>
|
|
|
|
<script setup>
|
|
import { Switch } from '@opentiny/vue'
|
|
import { IconArrowLeft, IconArrowRight } from '@opentiny/vue-icon'
|
|
|
|
const TinyIconArrowLeft = IconArrowLeft()
|
|
const TinyIconArrowRight = IconArrowRight()
|
|
|
|
const TinySwitch = Switch
|
|
</script>
|