This commit is contained in:
2025-05-24 01:49:48 +09:00
commit 62abbcf4eb
2376 changed files with 325522 additions and 0 deletions

View File

@@ -0,0 +1,46 @@
---
state:
flipped: false
---
### VCreditCard
Vuero ships with the `<VCreditCard />` component, a custom credit card
previewer. Check the code for more details.
<!--code-->
```vue
<script setup lang="ts">
const flipped = ref(null)
</script>
<template>
<VField>
<VControl>
<VCreditCard
color="grey"
:flipped="flipped"
@flip="flipped = !flipped"
/>
</VControl>
</VField>
</template>
```
<!--/code-->
<!--example-->
<VField class="credit-card">
<VControl>
<VCreditCard
color="grey"
:flipped="frontmatter.state.flipped"
@flip="frontmatter.state.flipped = !frontmatter.state.flipped"
/>
</VControl>
</VField>
<!--/example-->

View File

@@ -0,0 +1,17 @@
---
disable_code: true
slimscroll: true
---
### VCreditCard Props
Here is the full props available for `<VCreditCard />` component:
| Props | Default | Type |
| ------- | ---------------------------------------------------- | --------------------------------------------------------------------------------- |
| number | <span class="is-string">`0123 4567 8910 1112`</span> | string |
| name | <span class="is-string">`JOHN DOE`</span> | string |
| expiry | <span class="is-string">`01/23`</span> | string |
| cvc | <span class="is-string">`987`</span> | string |
| color | <span class="is-string">`grey`</span> | `grey`, `green`, `lime`, `orange`, `purple`, `red`, `yellow`, `lightblue`, `cyan` |
| flipped | <span class="is-boolean">`false`</span> | boolean |