You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+29Lines changed: 29 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -8,6 +8,7 @@ This component includes the following features:
8
8
- Great styling out-of-the-box, customization with CSS variables & Vue `:deep`
9
9
- Single & multi-select
10
10
- Deep customization with `<slot>`s
11
+
- Teleport/portal menu
11
12
12
13
## Installation
13
14
@@ -111,6 +112,34 @@ A function to get the label of an option. This is useful when you want to use a
111
112
112
113
This function is used to display the selected options (**multi-value**) in the select.
113
114
115
+
### Customization
116
+
117
+
There are 2 types of customization available in the component.
118
+
119
+
#### CSS variables
120
+
121
+
CSS variables is the easiest way to customize the component style but provides less flexibility over your design. When importing the component, you will notice that CSS variables are injected into the `:root` scope and are prefixed with `--vs-select-[...]`.
122
+
123
+
For a complete list of CSS variables, we recommend to take a look at the source-code ([`/src/Select.vue`](https://github.com/TotomInc/vue3-select-component/blob/master/src/Select.vue)) or look at your DevTools when using the component _(open DevTools => `Elements` tab => pick `<html />` node => view all CSS variables inside the `:root` scope)_.
124
+
125
+
#### Scoped styling inside SFC
126
+
127
+
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