Skip to content

Commit c8b59aa

Browse files
authored
docs: refactor forms into top level section (react-bootstrap#6158)
1 parent 260671c commit c8b59aa

File tree

14 files changed

+685
-572
lines changed

14 files changed

+685
-572
lines changed

www/src/components/SideNav.js

Lines changed: 19 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,6 +110,19 @@ const gettingStarted = [
110110

111111
const layout = ['grid', 'stack'];
112112

113+
const forms = [
114+
'overview',
115+
'form-control',
116+
'form-text',
117+
'select',
118+
'checks-radios',
119+
'range',
120+
'input-group',
121+
'floating-labels',
122+
'layout',
123+
'validation',
124+
];
125+
113126
const components = [
114127
'alerts',
115128
'accordion',
@@ -122,8 +135,6 @@ const components = [
122135
'close-button',
123136
'dropdowns',
124137
'figures',
125-
'forms',
126-
'input-group',
127138
'images',
128139
'list-group',
129140
'modal',
@@ -246,6 +257,12 @@ class SideNav extends React.Component {
246257
items={layout}
247258
path="/layout"
248259
/>
260+
<NavSection
261+
heading="Forms"
262+
location={location}
263+
items={forms}
264+
path="/forms"
265+
/>
249266
<NavSection
250267
heading="Components"
251268
location={location}
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<>
2+
<Form.Control
3+
type="text"
4+
placeholder="Disabled input"
5+
aria-label="Disabled input example"
6+
disabled
7+
readOnly
8+
/>
9+
<br />
10+
<Form.Control
11+
type="text"
12+
placeholder="Disabled readonly input"
13+
aria-label="Disabled input example"
14+
readOnly
15+
/>
16+
</>;

www/src/examples/Form/GridAutoSizingCustom.js

Lines changed: 0 additions & 29 deletions
This file was deleted.

0 commit comments

Comments
 (0)