Files
heroui-vue/apps/docs/demos/typography-render-props.vue
2026-10-22 13:07:13 +08:00

13 lines
374 B
Vue
Raw Permalink Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import { Typography } from "@heroui-vue/components";
</script>
<template>
<div class="flex max-w-xl flex-col gap-4">
<Typography type="h1" as="h2">H1 视觉样式,h2 语义元素</Typography>
<Typography as="span">
as 属性可更换底层元素,同时保留 HeroUI 的 props 与样式。
</Typography>
</div>
</template>