mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 01:12:30 +09:00
first
This commit is contained in:
60
documentation/button/v-button-base-documentation.md
Normal file
60
documentation/button/v-button-base-documentation.md
Normal file
@@ -0,0 +1,60 @@
|
||||
---
|
||||
state:
|
||||
clicked: 0
|
||||
---
|
||||
|
||||
### VButton
|
||||
|
||||
Vuero provides a `<VButton />` component if you don't want to use the
|
||||
simple Html button. VButtons can be made bold and rounded
|
||||
by using the `bold` and `rounded` props on the component.
|
||||
|
||||
<!--code-->
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
const clicked = ref(0)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VButtons>
|
||||
<VButton @click="clicked++">
|
||||
clicked: {{ clicked }}
|
||||
</VButton>
|
||||
<VButton bold @click="clicked++">
|
||||
clicked: {{ clicked }}
|
||||
</VButton>
|
||||
<VButton rounded @click="clicked++">
|
||||
clicked: {{ clicked }}
|
||||
</VButton>
|
||||
<VButton
|
||||
bold
|
||||
rounded
|
||||
@click="clicked++"
|
||||
>
|
||||
clicked: {{ clicked }}
|
||||
</VButton>
|
||||
</VButtons>
|
||||
</template>
|
||||
```
|
||||
|
||||
<!--/code-->
|
||||
|
||||
<!--example-->
|
||||
|
||||
<VButtons>
|
||||
<VButton @click="frontmatter.state.clicked++">
|
||||
clicked: {{ frontmatter.state.clicked }}
|
||||
</VButton>
|
||||
<VButton bold @click="frontmatter.state.clicked++">
|
||||
clicked: {{ frontmatter.state.clicked }}
|
||||
</VButton>
|
||||
<VButton rounded @click="frontmatter.state.clicked++">
|
||||
clicked: {{ frontmatter.state.clicked }}
|
||||
</VButton>
|
||||
<VButton bold rounded @click="frontmatter.state.clicked++">
|
||||
clicked: {{ frontmatter.state.clicked }}
|
||||
</VButton>
|
||||
</VButtons>
|
||||
|
||||
<!--/example-->
|
||||
Reference in New Issue
Block a user