0.11.11 • Published 19 days ago
@cypress-design/vue-button v0.11.11
Button
Install
npm install @cypress-design/vue-button
or with yarn
yarn add @cypress-design/vue-button
Usage
import Button from '@cypress-design/vue-button'
<script lang="ts" setup>
import { IconActionQuestionMarkCircle } from '@cypress-design/vue-icon'
</script>
<template>
<Button>
<IconActionQuestionMarkCircle class="mr-2" fill-color="indigo-400" />
Button
</Button>
</template>
Square buttons
<script lang="ts" setup>
import { IconActionQuestionMarkCircle } from '@cypress-design/vue-icon'
</script>
<template>
<div class="flex gap-4 items-center">
<Button v-for="size of [20, 24, 32, 40, 48]" :size="`${size}`" square>
<IconActionQuestionMarkCircle
fill-color="indigo-400"
:style="{ width: `${size / 2}px`, height: `${size / 2}px` }"
/>
</Button>
</div>
</template>
Possible variants
<script lang="ts" setup>
import {
default as Button,
VariantClassesTable,
SizeClassesTable,
} from '@cypress-design/vue-button'
</script>
<template>
<div class="flex flex-wrap justify-stretch gap-[8px]">
<div
v-for="(_, variant) in VariantClassesTable"
class="p-[8px] py-[12px] flex flex-col items-center gap-[16px] rounded min-w-[180px]"
:class="{
'bg-gray-1000 text-white': variant === 'outline-dark',
'bg-white text-gray-900': variant !== 'outline-dark',
}"
>
{{ variant }}
<div
class="flex gap-[8px] items-center"
v-for="(_, size) in SizeClassesTable"
>
{{ size }}
<Button :variant="variant" :size="size"> Button </Button>
</div>
</div>
</div>
</template>
0.11.11
19 days ago
0.11.10
20 days ago
0.11.9
21 days ago
0.11.8
1 month ago
0.11.7
3 months ago
0.11.1
4 months ago
0.11.2
4 months ago
0.11.3
4 months ago
0.11.4
4 months ago
0.11.5
4 months ago
0.11.6
4 months ago
0.11.0
4 months ago
0.10.2
10 months ago
0.9.4
12 months ago
0.9.3
12 months ago
0.10.1
12 months ago
0.10.0
12 months ago
0.9.0
1 year ago
0.9.2
1 year ago
0.9.1
1 year ago
0.8.2
1 year ago
0.8.1
1 year ago
0.7.2
1 year ago
0.8.0
1 year ago
0.7.1
1 year ago
0.7.0
1 year ago
0.6.0
1 year ago
0.5.0
1 year ago
0.4.1
2 years ago
0.4.0
2 years ago
0.3.2
2 years ago
0.3.1
2 years ago
0.3.0
2 years ago
0.2.0
2 years ago
0.1.0
2 years ago
0.0.1
2 years ago