primevue-mirror/apps/volt/doc/inputtext/BasicDoc.vue

32 lines
685 B
Vue
Raw Normal View History

2025-02-28 11:49:42 +00:00
<template>
<DocSectionText v-bind="$attrs">
<p>InputText is used with the <i>v-model</i> property for two-way value binding.</p>
</DocSectionText>
<div class="card flex justify-center">
2025-03-01 15:20:05 +00:00
<InputText v-model="value" />
2025-02-28 11:49:42 +00:00
</div>
2025-03-01 14:45:34 +00:00
<DocSectionCode :code="code" />
2025-02-28 11:49:42 +00:00
</template>
2025-02-28 22:59:25 +00:00
<script setup>
2025-03-03 12:50:58 +00:00
import InputText from '@/volt/inputtext';
2025-02-28 22:59:25 +00:00
import { ref } from 'vue';
2025-02-28 11:49:42 +00:00
2025-02-28 22:59:25 +00:00
const value = ref(null);
const code = ref(`
2025-02-28 11:49:42 +00:00
<template>
<div class="card flex justify-center">
2025-03-01 15:20:05 +00:00
<InputText v-model="value" />
2025-02-28 11:49:42 +00:00
</div>
</template>
<script setup>
2025-03-03 12:50:58 +00:00
import InputText from '@/volt/inputtext';
2025-02-28 11:49:42 +00:00
import { ref } from 'vue';
const value = ref(null);
<\/script>
2025-02-28 22:59:25 +00:00
`);
2025-02-28 11:49:42 +00:00
</script>