@@ -17,10 +17,11 @@ import {
17
17
CDropdownMenu ,
18
18
CDropdownToggle ,
19
19
CForm ,
20
- CFormControl ,
20
+ CFormInput ,
21
21
CFormCheck ,
22
22
CFormLabel ,
23
23
CFormSelect ,
24
+ CFormTextarea ,
24
25
CInputGroup ,
25
26
CInputGroupText ,
26
27
CCol ,
@@ -34,35 +35,35 @@ Place one add-on or button on either side of an input. You may also place one on
34
35
<Playground >
35
36
<CInputGroup className = " mb-3" >
36
37
<CInputGroupText id = " basic-addon1" >@</CInputGroupText >
37
- <CFormControl placeholder = " Username" aria-label = " Username" aria-describedby = " basic-addon1" />
38
+ <CFormInput placeholder = " Username" aria-label = " Username" aria-describedby = " basic-addon1" />
38
39
</CInputGroup >
39
40
40
41
<CInputGroup className = " mb-3" >
41
- <CFormControl placeholder = " Recipient's username" aria-label = " Recipient's username" aria-describedby = " basic-addon2" />
42
+ <CFormInput placeholder = " Recipient's username" aria-label = " Recipient's username" aria-describedby = " basic-addon2" />
42
43
<CInputGroupText id = " basic-addon2" >@example .com</CInputGroupText >
43
44
</CInputGroup >
44
45
45
46
<CFormLabel htmlFor = " basic-url" >Your vanity URL</CFormLabel >
46
47
<CInputGroup className = " mb-3" >
47
48
<CInputGroupText id = " basic-addon3" >https://example.com/users/ </CInputGroupText >
48
- <CFormControl id = " basic-url" aria-describedby = " basic-addon3" />
49
+ <CFormInput id = " basic-url" aria-describedby = " basic-addon3" />
49
50
</CInputGroup >
50
51
51
52
<CInputGroup className = " mb-3" >
52
53
<CInputGroupText >$</CInputGroupText >
53
- <CFormControl aria-label = " Amount (to the nearest dollar)" />
54
+ <CFormInput aria-label = " Amount (to the nearest dollar)" />
54
55
<CInputGroupText >.00</CInputGroupText >
55
56
</CInputGroup >
56
57
57
58
<CInputGroup className = " mb-3" >
58
- <CFormControl placeholder = " Username" aria-label = " Username" />
59
+ <CFormInput placeholder = " Username" aria-label = " Username" />
59
60
<CInputGroupText >@</CInputGroupText >
60
- <CFormControl placeholder = " Server" aria-label = " Server" />
61
+ <CFormInput placeholder = " Server" aria-label = " Server" />
61
62
</CInputGroup >
62
63
63
64
<CInputGroup >
64
65
<CInputGroupText >With textarea</CInputGroupText >
65
- <CFormControl component = " textarea " aria-label = " With textarea" ></CFormControl >
66
+ <CFormTextarea aria-label = " With textarea" ></CFormTextarea >
66
67
</CInputGroup >
67
68
</Playground >
68
69
@@ -73,7 +74,7 @@ Input groups wrap by default via `flex-wrap: wrap` in order to accommodate custo
73
74
<Playground >
74
75
<CInputGroup className = " flex-nowrap" >
75
76
<CInputGroupText id = " addon-wrapping" >@</CInputGroupText >
76
- <CFormControl placeholder = " Username" aria-label = " Username" aria-describedby = " addon-wrapping" />
77
+ <CFormInput placeholder = " Username" aria-label = " Username" aria-describedby = " addon-wrapping" />
77
78
</CInputGroup >
78
79
</Playground >
79
80
@@ -86,17 +87,17 @@ Add the relative form sizing classes to the `<CInputGroup>` itself and contents
86
87
<Playground >
87
88
<CInputGroup size = " sm" className = " mb-3" >
88
89
<CInputGroupText id = " inputGroup-sizing-sm" >Small</CInputGroupText >
89
- <CFormControl aria-label = " Sizing example input" aria-describedby = " inputGroup-sizing-sm" />
90
+ <CFormInput aria-label = " Sizing example input" aria-describedby = " inputGroup-sizing-sm" />
90
91
</CInputGroup >
91
92
92
93
<CInputGroup className = " mb-3" >
93
94
<CInputGroupText id = " inputGroup-sizing-default" >Default</CInputGroupText >
94
- <CFormControl aria-label = " Sizing example input" aria-describedby = " inputGroup-sizing-default" />
95
+ <CFormInput aria-label = " Sizing example input" aria-describedby = " inputGroup-sizing-default" />
95
96
</CInputGroup >
96
97
97
98
<CInputGroup size = " lg" >
98
99
<CInputGroupText id = " inputGroup-sizing-lg" >Large</CInputGroupText >
99
- <CFormControl aria-label = " Sizing example input" aria-describedby = " inputGroup-sizing-lg" />
100
+ <CFormInput aria-label = " Sizing example input" aria-describedby = " inputGroup-sizing-lg" />
100
101
</CInputGroup >
101
102
</Playground >
102
103
@@ -109,26 +110,26 @@ Place any checkbox or radio option within an input group's addon instead of text
109
110
<CInputGroupText >
110
111
<CFormCheck type = " checkbox" value = " " aria-label = " Checkbox for following text input" />
111
112
</CInputGroupText >
112
- <CFormControl aria-label = " Text input with checkbox" />
113
+ <CFormInput aria-label = " Text input with checkbox" />
113
114
</CInputGroup >
114
115
115
116
<CInputGroup >
116
117
<CInputGroupText >
117
118
<CFormCheck type = " radio" value = " " aria-label = " Radio button for following text input" />
118
119
</CInputGroupText >
119
- <CFormControl aria-label = " Text input with radio button" />
120
+ <CFormInput aria-label = " Text input with radio button" />
120
121
</CInputGroup >
121
122
</Playground >
122
123
123
124
## Multiple inputs
124
125
125
- While multiple ` <CFormControl > ` s are supported visually, validation styles are only available for input groups with a single ` <CFormControl > ` .
126
+ While multiple ` <CFormInput > ` s are supported visually, validation styles are only available for input groups with a single ` <CFormInput > ` .
126
127
127
128
<Playground >
128
129
<CInputGroup >
129
130
<CInputGroupText >First and last name</CInputGroupText >
130
- <CFormControl aria-label = " First name" />
131
- <CFormControl aria-label = " Last name" />
131
+ <CFormInput aria-label = " First name" />
132
+ <CFormInput aria-label = " Last name" />
132
133
</CInputGroup >
133
134
</Playground >
134
135
@@ -140,11 +141,11 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
140
141
<CInputGroup className = " mb-3" >
141
142
<CInputGroupText >$</CInputGroupText >
142
143
<CInputGroupText >0.00</CInputGroupText >
143
- <CFormControl aria-label = " Dollar amount (with dot and two decimal places)" />
144
+ <CFormInput aria-label = " Dollar amount (with dot and two decimal places)" />
144
145
</CInputGroup >
145
146
146
147
<CInputGroup >
147
- <CFormControl aria-label = " Dollar amount (with dot and two decimal places)" />
148
+ <CFormInput aria-label = " Dollar amount (with dot and two decimal places)" />
148
149
<CInputGroupText >$</CInputGroupText >
149
150
<CInputGroupText >0.00</CInputGroupText >
150
151
</CInputGroup >
@@ -155,22 +156,22 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
155
156
<Playground >
156
157
<CInputGroup className = " mb-3" >
157
158
<CButton type = " button" color = " secondary" variant = " outline" id = " button-addon1" >Button</CButton >
158
- <CFormControl placeholder = " " aria-label = " Example text with button addon" aria-describedby = " button-addon1" />
159
+ <CFormInput placeholder = " " aria-label = " Example text with button addon" aria-describedby = " button-addon1" />
159
160
</CInputGroup >
160
161
161
162
<CInputGroup className = " mb-3" >
162
- <CFormControl placeholder = " Recipient's username" aria-label = " Recipient's username" aria-describedby = " button-addon2" />
163
+ <CFormInput placeholder = " Recipient's username" aria-label = " Recipient's username" aria-describedby = " button-addon2" />
163
164
<CButton type = " button" color = " secondary" variant = " outline" id = " button-addon2" >Button</CButton >
164
165
</CInputGroup >
165
166
166
167
<CInputGroup className = " mb-3" >
167
168
<CButton type = " button" color = " secondary" variant = " outline" >Button</CButton >
168
169
<CButton type = " button" color = " secondary" variant = " outline" >Button</CButton >
169
- <CFormControl placeholder = " " aria-label = " Example text with two button addons" />
170
+ <CFormInput placeholder = " " aria-label = " Example text with two button addons" />
170
171
</CInputGroup >
171
172
172
173
<CInputGroup >
173
- <CFormControl placeholder = " Recipient's username" aria-label = " Recipient's username with two button addons" />
174
+ <CFormInput placeholder = " Recipient's username" aria-label = " Recipient's username with two button addons" />
174
175
<CButton type = " button" color = " secondary" variant = " outline" >Button</CButton >
175
176
<CButton type = " button" color = " secondary" variant = " outline" >Button</CButton >
176
177
</CInputGroup >
@@ -190,11 +191,11 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
190
191
<CDropdownItem href = " #" >Separated link</CDropdownItem >
191
192
</CDropdownMenu >
192
193
</CDropdown >
193
- <CFormControl aria-label = " Text input with dropdown button" />
194
+ <CFormInput aria-label = " Text input with dropdown button" />
194
195
</CInputGroup >
195
196
196
197
<CInputGroup className = " mb-3" >
197
- <CFormControl aria-label = " Text input with dropdown button" />
198
+ <CFormInput aria-label = " Text input with dropdown button" />
198
199
<CDropdown alignment = " end" variant = " input-group" >
199
200
<CDropdownToggle color = " secondary" variant = " outline" >Dropdown</CDropdownToggle >
200
201
<CDropdownMenu >
@@ -218,7 +219,7 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
218
219
<CDropdownItem href = " #" >Separated link</CDropdownItem >
219
220
</CDropdownMenu >
220
221
</CDropdown >
221
- <CFormControl aria-label = " Text input with 2 dropdown buttons" />
222
+ <CFormInput aria-label = " Text input with 2 dropdown buttons" />
222
223
<CDropdown alignment = " end" variant = " input-group" >
223
224
<CDropdownToggle color = " secondary" variant = " outline" >Dropdown</CDropdownToggle >
224
225
<CDropdownMenu >
@@ -247,11 +248,11 @@ Multiple add-ons are supported and can be mixed with checkbox and radio input ve
247
248
<CDropdownItem href = " #" >Separated link</CDropdownItem >
248
249
</CDropdownMenu >
249
250
</CDropdown >
250
- <CFormControl aria-label = " Text input with segmented dropdown button" />
251
+ <CFormInput aria-label = " Text input with segmented dropdown button" />
251
252
</CInputGroup >
252
253
253
254
<CInputGroup >
254
- <CFormControl aria-label = " Text input with segmented dropdown button" />
255
+ <CFormInput aria-label = " Text input with segmented dropdown button" />
255
256
<CDropdown alignment = " end" variant = " input-group" >
256
257
<CButton type = " button" color = " secondary" variant = " outline" >Action</CButton >
257
258
<CDropdownToggle color = " secondary" variant = " outline" split />
@@ -319,21 +320,21 @@ Input groups include support for custom selects and custom file inputs. Browser
319
320
<Playground >
320
321
<CInputGroup className = " mb-3" >
321
322
<CInputGroupText component = " label" htmlFor = " inputGroupFile01" >Upload</CInputGroupText >
322
- <CFormControl type = " file" id = " inputGroupFile01" />
323
+ <CFormInput type = " file" id = " inputGroupFile01" />
323
324
</CInputGroup >
324
325
325
326
<CInputGroup className = " mb-3" >
326
- <CFormControl type = " file" id = " inputGroupFile02" />
327
+ <CFormInput type = " file" id = " inputGroupFile02" />
327
328
<CInputGroupText component = " label" htmlFor = " inputGroupFile02" >Upload</CInputGroupText >
328
329
</CInputGroup >
329
330
330
331
<CInputGroup className = " mb-3" >
331
332
<CButton type = " button" color = " secondary" variant = " outline" id = " inputGroupFileAddon03" >Button</CButton >
332
- <CFormControl type = " file" id = " inputGroupFile03" aria-describedby = " inputGroupFileAddon03" aria-label = " Upload" />
333
+ <CFormInput type = " file" id = " inputGroupFile03" aria-describedby = " inputGroupFileAddon03" aria-label = " Upload" />
333
334
</CInputGroup >
334
335
335
336
<CInputGroup >
336
- <CFormControl type = " file" id = " inputGroupFile04" aria-describedby = " inputGroupFileAddon04" aria-label = " Upload" />
337
+ <CFormInput type = " file" id = " inputGroupFile04" aria-describedby = " inputGroupFileAddon04" aria-label = " Upload" />
337
338
<CButton type = " button" color = " secondary" variant = " outline" id = " inputGroupFileAddon04" >Button</CButton >
338
339
</CInputGroup >
339
340
</Playground >
0 commit comments