-
-
Notifications
You must be signed in to change notification settings - Fork 1.9k
/
common-props.json
244 lines (244 loc) · 10.3 KB
/
common-props.json
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
{
"id": {
"description": "Used to set the 'id' attribute on the rendered content, and used as the base to generate any additional element IDs as needed"
},
"variant": {
"description": "Applies one of the Bootstrap theme color variants to the component"
},
"textVariant": {
"description": "Applies one of the Bootstrap theme color variants to the text"
},
"bgVariant": {
"description": "Applies one of the Bootstrap theme color variants to the background"
},
"borderVariant": {
"description": "Applies one of the Bootstrap theme color variants to the border"
},
"headerVariant": {
"description": "Applies one of the Bootstrap theme color variants to the header"
},
"headerTextVariant": {
"description": "Applies one of the Bootstrap theme color variants to the header text"
},
"titleTextVariant": {
"description": "Applies one of the Bootstrap theme color variants to the title text"
},
"subTitleTextVariant": {
"description": "Applies one of the Bootstrap theme color variants to the sub title text"
},
"headerBgVariant": {
"description": "Applies one of the Bootstrap theme color variants to the header background"
},
"headerBorderVariant": {
"description": "Applies one of the Bootstrap theme color variants to the header border"
},
"footerVariant": {
"description": "Applies one of the Bootstrap theme color variants to the footer"
},
"footerTextVariant": {
"description": "Applies one of the Bootstrap theme color variants to the footer text"
},
"footerBgVariant": {
"description": "Applies one of the Bootstrap theme color variants to the footer background"
},
"footerBorderVariant": {
"description": "Applies one of the Bootstrap theme color variants to the footer border"
},
"bodyVariant": {
"description": "Applies one of the Bootstrap theme color variants to the body"
},
"bodyTextVariant": {
"description": "Applies one of the Bootstrap theme color variants to the body text"
},
"bodyBgVariant": {
"description": "Applies one of the Bootstrap theme color variants to the body background"
},
"bodyBorderVariant": {
"description": "Applies one of the Bootstrap theme color variants to the body border"
},
"tag": {
"description": "Specify the HTML tag to render instead of the default tag"
},
"headerTag": {
"description": "Specify the HTML tag to render instead of the default tag for the header"
},
"footerTag": {
"description": "Specify the HTML tag to render instead of the default tag for the footer"
},
"bodyTag": {
"description": "Specify the HTML tag to render instead of the default tag for the body"
},
"titleTag": {
"description": "Specify the HTML tag to render instead of the default tag for the title"
},
"subTitleTag": {
"description": "Specify the HTML tag to render instead of the default tag for the sub title"
},
"textTag": {
"description": "Specify the HTML tag to render instead of the default tag for the text content"
},
"headerClass": {
"description": "CSS class (or classes) to apply to the header"
},
"footerClass": {
"description": "CSS class (or classes) to apply to the footer"
},
"bodyClass": {
"description": "CSS class (or classes) to apply to the body"
},
"titleClass": {
"description": "CSS class (or classes) to apply to the title"
},
"header": {
"description": "Text content to place in the header"
},
"headerHtml": {
"description": "HTML string content to place in the header. Use with caution"
},
"footer": {
"description": "Text content to place in the footer"
},
"footerHtml": {
"description": "HTML string content to place in the footer. Use with caution"
},
"title": {
"description": "Text content to place in the title"
},
"titleHtml": {
"description": "HTML string content to place in the title. Use with caution"
},
"subTitle": {
"description": "Text content to place in the sub title"
},
"size": {
"description": "Set the size of the component's appearance. 'sm', 'md' (default), or 'lg'"
},
"required": {
"description": "Adds the 'required' attribute to the form control"
},
"form": {
"description": "ID of the form that the form control belongs to. Sets the 'form' attribute on the control"
},
"name": {
"description": "Sets the value of the 'name' attribute on the form control"
},
"placeholder": {
"description": "Sets the 'placeholder' attribute value on the form control"
},
"disabled": {
"description": "When set to 'true', disables the component's functionality and places it in a disabled state"
},
"readonly": {
"description": "Sets the 'readonly' attribute on the form control"
},
"plaintext": {
"description": "Set the form control as readonly and renders the control to look like plain text (no borders)"
},
"autocomplete": {
"description": "Sets the 'autocomplete' attribute value on the form control"
},
"autofocus": {
"description": "When set to 'true', attempts to auto-focus the control when it is mounted, or re-activated when in a keep-alive. Does not set the 'autofocus' attribute on the control"
},
"state": {
"description": "Controls the validation state appearance of the component. 'true' for valid, 'false' for invalid', or 'null' for no validation state"
},
"options": {
"description": "Array of items to render in the component"
},
"valueField": {
"description": "Field name in the 'options' array that should be used for the value"
},
"textField": {
"description": "Field name in the 'options' array that should be used for the text label"
},
"htmlField": {
"description": "Field name in the 'options' array that should be used for the html label instead of text field. Use with caution."
},
"disabledField": {
"description": "Field name in the 'options' array that should be used for the disabled state"
},
"plain": {
"description": "Render the form control in plain mode, rather than custom styled mode"
},
"static": {
"description": "Renders the content of the component in-place in the DOM, rather than portalling it to be appended to the body element"
},
"src": {
"description": "URL to set for the 'src' attribute"
},
"alt": {
"description": "Value to set for the 'alt' attribute"
},
"role": {
"description": "Sets the ARIA attribute 'role' to a specific value"
},
"ariaRole": {
"description": "Sets the ARIA attribute 'role' to a specific value"
},
"ariaLabel": {
"description": "Sets the value of 'aria-label' attribute on the rendered element"
},
"ariaLabelledby": {
"description": "The ID of the element that provides a label for this component. Used as the value for the 'aria-labelledby' attribute"
},
"ariaDescribedby": {
"description": "The ID of the element that provides additional context for this component. Used as the value for the 'aria-describedby' attribute"
},
"ariaLive": {
"description": "When the rendered element is an aria-live region (for screen reader users), set to either 'polite' or 'assertive'"
},
"fade": {
"description": "When set to 'true', enables the fade animation/transition on the component"
},
"noFade": {
"description": "When set to 'true', disables the fade animation/transition on the component"
},
"active": {
"description": "When set to 'true', places the component in the active state with active styling"
},
"href": {
"description": "<b-link> prop: Denotes the target URL of the link for standard a links"
},
"rel": {
"description": "<b-link> prop: Sets the 'rel' attribute on the rendered link"
},
"target": {
"description": "<b-link> prop: Sets the 'target' attribute on the rendered link"
},
"to": {
"description": "<router-link> prop: Denotes the target route of the link. When clicked, the value of the to prop will be passed to router.push() internally, so the value can be either a string or a Location descriptor object"
},
"replace": {
"description": "<router-link> prop: Setting the replace prop will call 'router.replace()' instead of 'router.push()' when clicked, so the navigation will not leave a history record"
},
"append": {
"description": "<router-link> prop: Setting append prop always appends the relative path to the current path"
},
"exact": {
"description": "<router-link> prop: The default active class matching behavior is inclusive match. Setting this prop forces the mode to exactly match the route"
},
"activeClass": {
"description": "<router-link> prop: Configure the active CSS class applied when the link is active. Typically you will want to set this to class name 'active'"
},
"exactActiveClass": {
"description": "<router-link> prop: Configure the active CSS class applied when the link is active with exact match. Typically you will want to set this to class name 'active'"
},
"routerTag": {
"description": "<router-link> prop: Specify which tag to render, and it will still listen to click events for navigation. 'router-tag' translates to the tag prop on the final rendered router-link. Typically you should use the default value"
},
"event": {
"description": "<router-link> prop: Specify the event that triggers the link. In most cases you should leave this as the default"
},
"prefetch": {
"description": "<nuxt-link> prop: To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting 'prefetch' to 'true' or 'false' will overwrite the default value of 'router.prefetchLinks'",
"version": "2.15.0"
},
"noPrefetch": {
"description": "<nuxt-link> prop: To improve the responsiveness of your Nuxt.js applications, when the link will be displayed within the viewport, Nuxt.js will automatically prefetch the code splitted page. Setting 'no-prefetch' will disabled this feature for the specific link"
},
"routerComponentName": {
"description": "<b-link> prop: BootstrapVue auto detects between `<router-link>` and `<nuxt-link>`. In cases where you want to use a 3rd party link component based on `<router-link>`, set this prop to the component name. e.g. set it to 'g-link' if you are using Gridsome (note only `<router-link>` specific props are passed to the component)",
"version": "2.15.0"
}
}