-
Notifications
You must be signed in to change notification settings - Fork 115
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
b13318d
commit 4b8bf70
Showing
2 changed files
with
97 additions
and
72 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<script setup lang="ts"> | ||
import { reactive } from 'vue' | ||
import Textarea from './Textarea.vue' | ||
const state = reactive({ | ||
size: 'sm', | ||
placeholder: 'Placeholder', | ||
disabled: false, | ||
modelValue: '', | ||
label: 'Label', | ||
}) | ||
const sizes = ['sm', 'md', 'lg', 'xl'] | ||
const variants = ['subtle', 'outline'] | ||
</script> | ||
|
||
<template> | ||
<Story :layout="{ type: 'grid', width: 500 }"> | ||
<Variant v-for="type in variants" :key="type" :title="`${type} variant`"> | ||
<Textarea :variant="type" v-bind="state" /> | ||
</Variant> | ||
|
||
<template #controls> | ||
<HstSelect v-model="state.size" :options="sizes" title="Size" /> | ||
</template> | ||
</Story> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters