<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 flex-col items-center gap-4">
        <PlexInputText v-model="value1" type="text" size="small" placeholder="Small" />
        <PlexInputText v-model="value2" type="text" placeholder="Normal" />
        <PlexInputText v-model="value3" type="text" size="large" placeholder="Large" />
    </div>
    <DocSectionCode :code="code" hideToggleCode hideStackBlitz />
</template>

<script setup>
import PlexInputText from '@/plex/inputtext';
import { ref } from 'vue';

const value1 = ref(null);
const value2 = ref(null);
const value3 = ref(null);

const code = ref(`
<template>
    <div class="card flex flex-col items-center gap-4">
        <PlexInputText v-model="value1" type="text" size="small" placeholder="Small" />
        <PlexInputText v-model="value2" type="text" placeholder="Normal" />
        <PlexInputText v-model="value3" type="text" size="large" placeholder="Large" />
    </div>
</template>

<script setup>
import PlexInputText from '@/plex/inputtext';
import { ref } from 'vue';

const value1 = ref(null);
const value2 = ref(null);
const value3 = ref(null);
<\/script>
`);
</script>
