primevue-mirror/apps/volt/doc/button/DisabledDoc.vue

27 lines
587 B
Vue
Raw Normal View History

2025-03-04 10:12:57 +00:00
<template>
<DocSectionText v-bind="$attrs">
2025-03-04 11:17:02 +00:00
<p>When <i>disabled</i> is present, the element cannot be used.</p>
2025-03-04 10:12:57 +00:00
</DocSectionText>
<div class="card flex justify-center">
2025-03-04 11:17:02 +00:00
<Button label="Submit" disabled />
2025-03-04 10:12:57 +00:00
</div>
<DocSectionCode :code="code" />
</template>
<script setup>
import Button from '@/volt/button';
import { ref } from 'vue';
const code = ref(`
<template>
<div class="card flex justify-center">
2025-03-04 11:17:02 +00:00
<Button label="Submit" disabled />
2025-03-04 10:12:57 +00:00
</div>
</template>
<script setup>
import Button from '@/volt/button';
<\/script>
`);
</script>