primevue-mirror/apps/labs/doc/checkbox/DisabledDoc.vue

36 lines
902 B
Vue

<template>
<DocSectionText v-bind="$attrs">
<p>When <i>disabled</i> is present, the element cannot be edited and focused.</p>
</DocSectionText>
<div class="card flex justify-center gap-2">
<Checkbox v-model="checked1" binary disabled />
<Checkbox v-model="checked2" binary disabled />
</div>
<DocSectionCode :code="code" />
</template>
<script setup>
import Checkbox from '@/plex/checkbox';
import { ref } from 'vue';
const checked1 = ref(false);
const checked2 = ref(true);
const code = ref(`
<template>
<div class="card flex justify-center gap-2">
<Checkbox v-model="checked1" binary disabled />
<Checkbox v-model="checked2" binary disabled />
</div>
</template>
<script setup>
import Checkbox from '@/plex/checkbox';
import { ref } from 'vue';
const checked1 = ref(false);
const checked2 = ref(true);
<\/script>
`);
</script>