Files
hoppscotch/packages/hoppscotch-ui/src/stories/Link.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

21 lines
541 B
Vue

<template>
<Story title="Link">
<Variant title="Text Link">
<HoppSmartLink :to="link" :blank="true"> Click here </HoppSmartLink>
</Variant>
<Variant title="Button Link">
<HoppSmartLink :to="link" :blank="true">
<HoppButtonPrimary label="Click here" />
</HoppSmartLink>
</Variant>
</Story>
</template>
<script setup lang="ts">
import { HoppSmartLink } from "../components/smart"
import { HoppButtonPrimary } from "../components/button"
import { ref } from "vue"
const link = ref("/")
</script>