2023-03-06 17:26:10 -05:00
|
|
|
# Text Inputs
|
2023-06-10 12:18:15 -04:00
|
|
|
<script setup>
|
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
const inputText = ref(null)
|
|
|
|
|
</script>
|
|
|
|
|
|
2023-03-06 17:26:10 -05:00
|
|
|
<DemoContainer>
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="Text input"
|
|
|
|
|
/>
|
|
|
|
|
</DemoContainer>
|
|
|
|
|
|
|
|
|
|
```vue
|
|
|
|
|
<input
|
|
|
|
|
type="text"
|
|
|
|
|
placeholder="Text input"
|
|
|
|
|
/>
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
<DemoContainer>
|
|
|
|
|
<div class="iconified-input">
|
|
|
|
|
<SearchIcon/>
|
|
|
|
|
<input
|
2023-06-10 12:18:15 -04:00
|
|
|
v-model="inputText"
|
2023-03-06 17:26:10 -05:00
|
|
|
type="text"
|
|
|
|
|
placeholder="Text input"
|
|
|
|
|
/>
|
2023-06-10 12:18:15 -04:00
|
|
|
<Button @click="() => inputText = ''">
|
|
|
|
|
<XIcon/>
|
|
|
|
|
</Button>
|
2023-03-06 17:26:10 -05:00
|
|
|
</div>
|
|
|
|
|
</DemoContainer>
|
|
|
|
|
|
|
|
|
|
```vue
|
2023-06-10 12:18:15 -04:00
|
|
|
<script setup>
|
|
|
|
|
import { ref } from "vue";
|
|
|
|
|
const inputText = ref(null)
|
|
|
|
|
</script>
|
|
|
|
|
|
2023-03-06 17:26:10 -05:00
|
|
|
<div class="iconified-input">
|
|
|
|
|
<SearchIcon/>
|
|
|
|
|
<input
|
2023-06-10 12:18:15 -04:00
|
|
|
v-model="inputText"
|
2023-03-06 17:26:10 -05:00
|
|
|
type="text"
|
|
|
|
|
placeholder="Text input"
|
|
|
|
|
/>
|
2023-06-10 12:18:15 -04:00
|
|
|
<Button @click="() => inputText = ''">
|
|
|
|
|
<XIcon/>
|
|
|
|
|
</Button>
|
2023-03-06 17:26:10 -05:00
|
|
|
</div>
|
|
|
|
|
```
|