Files
hoppscotch/packages/hoppscotch-ui/src/stories/Toggle.story.vue
Joel Jacob Stephen 3f59597864 feat: introducing self hosted admin dashboard package (#12)
Co-authored-by: Andrew Bastin <andrewbastin.k@gmail.com>
Co-authored-by: Anwarul Islam <anwaarulislaam@gmail.com>
2023-02-28 13:13:27 +05:30

17 lines
333 B
Vue

<template>
<Story title="Toggle">
<HoppSmartToggle :on="on" @change="change"> Turn on </HoppSmartToggle>
</Story>
</template>
<script setup lang="ts">
import { HoppSmartToggle } from "../components/smart"
import { ref } from "vue"
const on = ref(true)
const change = () => {
alert("changed to: " + on.value)
}
</script>