diff options
author | 2023-04-23 22:26:32 +0200 | |
---|---|---|
committer | 2023-04-23 22:43:06 +0200 | |
commit | 92bd83536fd1ca84e71d27c3682153cc8eb27d84 (patch) | |
tree | 55bca29e778aa67dbb9d59f052e20e8433b87169 /src/ui/c-button/c-button.demo.vue | |
parent | e88c1d5f2c369e19b60af1f1d6424de74020dd2f (diff) | |
download | it-tools-92bd83536fd1ca84e71d27c3682153cc8eb27d84.tar.gz it-tools-92bd83536fd1ca84e71d27c3682153cc8eb27d84.tar.zst it-tools-92bd83536fd1ca84e71d27c3682153cc8eb27d84.zip |
feat(ui-lib): demo pages for c-lib components
Diffstat (limited to 'src/ui/c-button/c-button.demo.vue')
-rw-r--r-- | src/ui/c-button/c-button.demo.vue | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/src/ui/c-button/c-button.demo.vue b/src/ui/c-button/c-button.demo.vue new file mode 100644 index 0000000..988659f --- /dev/null +++ b/src/ui/c-button/c-button.demo.vue @@ -0,0 +1,29 @@ +<template> + <div v-for="buttonVariant of buttonVariants" :key="buttonVariant"> + <h2>{{ _.capitalize(buttonVariant) }}</h2> + + <c-button v-for="buttonType of buttonTypes" :key="buttonType" :variant="buttonVariant" :type="buttonType" mx-1> + Button + </c-button> + + <c-button + v-for="buttonType of buttonTypes" + :key="buttonType" + :variant="buttonVariant" + :type="buttonType" + circle + mx-1 + > + A + </c-button> + </div> +</template> + +<script lang="ts" setup> +import _ from 'lodash'; + +const buttonVariants = ['basic', 'text']; +const buttonTypes = ['default', 'primary']; +</script> + +<style lang="less" scoped></style> |