67 lines
1.7 KiB
Vue
67 lines
1.7 KiB
Vue
|
<template>
|
||
|
<DocSectionText v-bind="$attrs">
|
||
|
<p>IftaLabel is used to create infield top aligned labels. Visit <PrimeVueNuxtLink to="/iftalabel">IftaLabel</PrimeVueNuxtLink> documentation for more information.</p>
|
||
|
</DocSectionText>
|
||
|
<div class="card flex justify-center">
|
||
|
<IftaLabel>
|
||
|
<Textarea id="description" v-model="value" rows="5" cols="30" style="resize: none" />
|
||
|
<label for="description">Description</label>
|
||
|
</IftaLabel>
|
||
|
</div>
|
||
|
<DocSectionCode :code="code" />
|
||
|
</template>
|
||
|
|
||
|
<script>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
description: null,
|
||
|
code: {
|
||
|
basic: `
|
||
|
<IftaLabel>
|
||
|
<Textarea id="description" v-model="value" rows="5" cols="30" style="resize: none" />
|
||
|
<label for="description">Description</label>
|
||
|
</IftaLabel>
|
||
|
`,
|
||
|
options: `
|
||
|
<template>
|
||
|
<div class="card flex justify-center">
|
||
|
<IftaLabel>
|
||
|
<Textarea id="description" v-model="value" rows="5" cols="30" style="resize: none" />
|
||
|
<label for="description">Description</label>
|
||
|
</IftaLabel>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script setup>
|
||
|
export default {
|
||
|
data() {
|
||
|
return {
|
||
|
value: null
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
<\/script>
|
||
|
`,
|
||
|
composition: `
|
||
|
<template>
|
||
|
<div class="card flex justify-center">
|
||
|
<IftaLabel>
|
||
|
<Textarea id="description" v-model="value" rows="5" cols="30" style="resize: none" />
|
||
|
<label for="description">Description</label>
|
||
|
</IftaLabel>
|
||
|
</div>
|
||
|
</template>
|
||
|
|
||
|
<script setup>
|
||
|
import { ref } from 'vue';
|
||
|
|
||
|
const value = ref(null);
|
||
|
<\/script>
|
||
|
`
|
||
|
}
|
||
|
};
|
||
|
}
|
||
|
};
|
||
|
</script>
|