diff --git a/src/components/form-tags/README.md b/src/components/form-tags/README.md
index a941c6c2907..9b4ba743c2a 100644
--- a/src/components/form-tags/README.md
+++ b/src/components/form-tags/README.md
@@ -501,27 +501,27 @@ of tags:
-
-
-
-
-
-
-
+
+
+
+
+
+
+
@@ -532,13 +532,13 @@ of tags:
export default {
data() {
return {
- allOptions: ['Apple', 'Orange', 'Banana', 'Lime', 'Peach', 'Chocolate', 'Strawberry'],
+ options: ['Apple', 'Orange', 'Banana', 'Lime', 'Peach', 'Chocolate', 'Strawberry'],
value: []
}
},
computed: {
availableOptions() {
- return this.allOptions.filter(opt => this.value.indexOf(opt) === -1)
+ return this.options.filter(opt => this.value.indexOf(opt) === -1)
}
}
}
@@ -657,6 +657,111 @@ default slot's scope.
```
+The following is an example of using the `` component for choosing or searching from a
+pre-defined set of tags:
+
+```html
+
+
+
+
+
+
+
+
+
+ Choose tags
+
+ {}">
+
+
+
+
+
+
+ {{ option }}
+
+
+ There are no tags available to select
+
+
+
+
+
+
+
+
+
+
+
+```
+
### Creating wrapper components
You can easily create a custom wrapper component with your preferred rendering style as follows: