We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cf29dfa commit 16fd6d4Copy full SHA for 16fd6d4
docs/styling.md
@@ -74,6 +74,21 @@ List of available CSS variables (pulled from the demo):
74
}
75
```
76
77
+Inside the SFC that is using the component, you must add a class to the component and apply the CSS variables to that class.
78
+
79
+```vue
80
+<template>
81
+ <VueSelect class="custom-select" />
82
+</template>
83
84
+<style lang scoped>
85
+.custom-select {
86
+ --vs-border-radius: 12px;
87
+ --vs-text-color: #334155;
88
+}
89
+</style>
90
+```
91
92
## Scoped styling inside SFC
93
94
You can apply any custom styling using [the `:deep` selector](https://vuejs.org/api/sfc-css-features.html#deep-selectors) inside a `<style scoped>`.
0 commit comments