Files
heroui-vue/apps/docs/demos/button-basic.vue
T

9 lines
250 B
Vue

<script setup lang="ts">
import { ref } from "vue";
import { Button } from "@heroui-vue/components";
const pressed = ref(false);
</script>
<template>
<Button @click="pressed = true">{{ pressed ? "按钮已按下" : "点我" }}</Button>
</template>