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: docs/styling.md
+73-36Lines changed: 73 additions & 36 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,77 +4,95 @@ title: 'Styling'
4
4
5
5
# Styling
6
6
7
-
Vue 3 Select Component provides 2 types of customization available in the component.
7
+
Vue 3 Select Component provides multiple types of customization.
8
8
9
9
::: tip
10
-
The default component styling is already included with the VueSelect component, you don't need to import any CSS file to make it work.
10
+
The default component styling is already included and bundled with the `<VueSelect />` component.
11
+
You don't need to import any other CSS file to make it work, by default.
11
12
:::
12
13
13
14
## CSS variables
14
15
15
-
CSS variablesis 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-[...]`.
16
+
Using CSS variables, it is possible to customize the component style easily _but_ this method 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-[...]`.
16
17
17
-
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)_.
18
+
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 _(open DevTools => `Elements` tab => pick `<html />` node => view all CSS variables inside the `:root` scope)_.
18
19
19
-
List of available CSS variables (pulled from the demo):
0 commit comments