2024-09-18 10:49:16 +00:00
|
|
|
<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>
|
2024-09-28 20:59:00 +00:00
|
|
|
<InputMask id="ssn" v-model="value" mask="999-99-9999" autocomplete="off" variant="filled" />
|
2024-09-18 10:49:16 +00:00
|
|
|
<label for="ssn">SSN</label>
|
|
|
|
</IftaLabel>
|
|
|
|
</div>
|
|
|
|
<DocSectionCode :code="code" />
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script>
|
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
value: null,
|
|
|
|
code: {
|
|
|
|
basic: `
|
|
|
|
<IftaLabel>
|
2024-09-28 20:59:00 +00:00
|
|
|
<InputMask id="ssn" v-model="value" mask="999-99-9999" variant="filled" />
|
2024-09-18 10:49:16 +00:00
|
|
|
<label for="ssn">SSN</label>
|
|
|
|
</IftaLabel>
|
|
|
|
`,
|
|
|
|
options: `
|
|
|
|
<template>
|
|
|
|
<div class="card flex justify-center">
|
|
|
|
<IftaLabel>
|
2024-09-28 20:59:00 +00:00
|
|
|
<InputMask id="ssn" v-model="value" mask="999-99-9999" variant="filled" />
|
2024-09-18 10:49:16 +00:00
|
|
|
<label for="ssn">SSN</label>
|
|
|
|
</IftaLabel>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
2024-09-23 08:30:11 +00:00
|
|
|
<script>
|
2024-09-18 10:49:16 +00:00
|
|
|
export default {
|
|
|
|
data() {
|
|
|
|
return {
|
|
|
|
value: null
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<\/script>
|
|
|
|
`,
|
|
|
|
composition: `
|
|
|
|
<template>
|
|
|
|
<div class="card flex justify-center">
|
|
|
|
<IftaLabel>
|
2024-09-28 20:59:00 +00:00
|
|
|
<InputMask id="ssn" v-model="value" mask="999-99-9999" variant="filled" />
|
2024-09-18 10:49:16 +00:00
|
|
|
<label for="ssn">SSN</label>
|
|
|
|
</IftaLabel>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
const value = ref(null);
|
|
|
|
<\/script>
|
|
|
|
`
|
|
|
|
}
|
|
|
|
};
|
|
|
|
}
|
|
|
|
};
|
|
|
|
</script>
|