23 lines
467 B
Vue
23 lines
467 B
Vue
<script setup lang="ts">
|
|
import { IconPlus } from "@tabler/icons-vue";
|
|
import { Button } from "@heroui-vue/components";
|
|
</script>
|
|
<template>
|
|
<div class="full-width-demo">
|
|
<Button full-width>主要按钮</Button>
|
|
<Button full-width>
|
|
<IconPlus aria-hidden="true" />
|
|
带图标
|
|
</Button>
|
|
</div>
|
|
</template>
|
|
<style scoped>
|
|
.full-width-demo {
|
|
display: flex;
|
|
flex-direction: column;
|
|
gap: 12px;
|
|
width: 400px;
|
|
max-width: 100%;
|
|
}
|
|
</style>
|