2025-02-28 11:49:42 +00:00
|
|
|
<template>
|
|
|
|
<DocSectionText v-bind="$attrs">
|
2025-03-01 13:43:27 +00:00
|
|
|
<p>InputText provides <i>small</i> and <i>large</i> sizes as alternatives to the base.</p>
|
2025-02-28 11:49:42 +00:00
|
|
|
</DocSectionText>
|
|
|
|
<div class="card flex flex-col items-center gap-4">
|
2025-03-01 15:20:05 +00:00
|
|
|
<InputText v-model="value1" type="text" size="small" placeholder="Small" />
|
|
|
|
<InputText v-model="value2" type="text" placeholder="Normal" />
|
|
|
|
<InputText v-model="value3" type="text" size="large" placeholder="Large" />
|
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-01 15:20:05 +00:00
|
|
|
import InputText from '@/plex/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 value1 = ref(null);
|
|
|
|
const value2 = ref(null);
|
|
|
|
const value3 = ref(null);
|
|
|
|
|
|
|
|
const code = ref(`
|
2025-02-28 11:49:42 +00:00
|
|
|
<template>
|
|
|
|
<div class="card flex flex-col items-center gap-4">
|
2025-03-01 15:20:05 +00:00
|
|
|
<InputText v-model="value1" type="text" size="small" placeholder="Small" />
|
|
|
|
<InputText v-model="value2" type="text" placeholder="Normal" />
|
|
|
|
<InputText v-model="value3" type="text" size="large" placeholder="Large" />
|
2025-02-28 11:49:42 +00:00
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
2025-03-01 15:20:05 +00:00
|
|
|
import InputText from '@/plex/inputtext';
|
2025-02-28 11:49:42 +00:00
|
|
|
import { ref } from 'vue';
|
|
|
|
|
|
|
|
const value1 = ref(null);
|
|
|
|
const value2 = ref(null);
|
|
|
|
const value3 = ref(null);
|
|
|
|
<\/script>
|
2025-02-28 22:59:25 +00:00
|
|
|
`);
|
2025-02-28 11:49:42 +00:00
|
|
|
</script>
|