Files
heroui-vue/apps/docs/demos/button-render-function.vue
T

9 lines
235 B
Vue

<script setup lang="ts">
import { Button } from "@heroui-vue/components";
</script>
<template>
<Button as-child v-slot="{ isPressed }">
<button :data-custom="isPressed ? 'pressed' : 'bar'">点按</button>
</Button>
</template>