mirror of
https://git.hmsn.ink/kospo/svcm/oa.git
synced 2026-03-20 10:43:37 +09:00
first
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
---
|
||||
state:
|
||||
input: 7
|
||||
---
|
||||
|
||||
### Accessible label
|
||||
|
||||
To add a label to the rating component, use the `label` prop. You can also
|
||||
use the `label` slot to customize the label.
|
||||
|
||||
<!--code-->
|
||||
|
||||
```vue
|
||||
<script setup lang="ts">
|
||||
|
||||
const input = ref(2)
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<VField>
|
||||
<VControl>
|
||||
<VRangeRating v-model="input" label="Rating" />
|
||||
</VControl>
|
||||
</VField>
|
||||
</template>
|
||||
```
|
||||
|
||||
<!--/code-->
|
||||
|
||||
<!--example-->
|
||||
|
||||
<VField>
|
||||
<VControl>
|
||||
<VRangeRating
|
||||
v-model="frontmatter.state.input"
|
||||
label="Rating"
|
||||
/>
|
||||
</VControl>
|
||||
</VField>
|
||||
|
||||
<!--/example-->
|
||||
Reference in New Issue
Block a user