All available props see in InputText.props.ts
The component natively supports i18n for placeholder values.
You can provide a placeholder as a locale token, and it will be dynamically translated
<template>
<input-text v-model="value" />
</template>
<script setup lang="ts">
import { InputText } from '@tok/ui/components/InputText';
import { ref } from 'vue';
const value = ref(null);
</script>
<template>
<input-text v-model="value" size="s" />
<input-text v-model="value" size="m" />
<input-text v-model="value" size="l" />
</template>
<script setup lang="ts">
import { InputText } from '@tok/ui/components/InputText';
import { ref } from 'vue';
const value = ref(null);
</script>
<template>
<input-text v-model="value" size="xxl" />
</template>
<script setup lang="ts">
import { InputText } from '@tok/ui/components/InputText';
import { ref } from 'vue';
const value = ref(null);
</script>
<style lang="scss" scoped>
.container {
.tok-input {
// custom xxl size
&[data-size='xxl'] {
height: 4.5rem;
}
}
}
</style>
<template>
<input-text v-model="value" invalid disabled />
</template>
<script setup lang="ts">
import { InputText } from '@tok/ui/components/InputText';
import { ref } from 'vue';
const value = ref(null);
</script>
<style lang="scss" scoped>
.container {
.tok-input {
&[data-state='focused'] {
...
}
&[data-state='invalid'] {
...
}
&[data-state='disabled'] {
...
}
}
}
</style>