Files
oa/documentation/plugins/slider/slider-base-documentation.md
2025-05-24 01:49:48 +09:00

45 lines
824 B
Markdown

---
state:
value: 0
---
### Rounded tooltip
Vuero provides a customisable `<Slider />` component. You can check the plugin
documentation on [Github](https://github.com/vueform/slider). Use the
`has-rounded-tooltip`class on the `<VField />` component to show a rounded
tooltip.
<!--code-->
```vue
<script setup lang="ts">
const value = ref(0)
</script>
<template>
<VField v-slot="{ id }" class="has-rounded-tooltip">
<VControl>
<Slider :id="id" v-model="value" />
</VControl>
</VField>
</template>
```
<!--/code-->
<!--example-->
<div class="columns mt-2">
<div class="column is-6">
<VField v-slot="{ id }" class="pt-5 px-4 has-rounded-tooltip">
<VControl>
<Slider :id="id" v-model="frontmatter.state.value" />
</VControl>
</VField>
</div>
</div>
<!--/example-->