Skip to content

Commit

Permalink
docs: refactor forms into top level section (#6158)
Browse files Browse the repository at this point in the history
  • Loading branch information
kyletsang committed Dec 22, 2021
1 parent 260671c commit c8b59aa
Show file tree
Hide file tree
Showing 14 changed files with 685 additions and 572 deletions.
21 changes: 19 additions & 2 deletions www/src/components/SideNav.js
Expand Up @@ -110,6 +110,19 @@ const gettingStarted = [

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

const forms = [
'overview',
'form-control',
'form-text',
'select',
'checks-radios',
'range',
'input-group',
'floating-labels',
'layout',
'validation',
];

const components = [
'alerts',
'accordion',
Expand All @@ -122,8 +135,6 @@ const components = [
'close-button',
'dropdowns',
'figures',
'forms',
'input-group',
'images',
'list-group',
'modal',
Expand Down Expand Up @@ -246,6 +257,12 @@ class SideNav extends React.Component {
items={layout}
path="/layout"
/>
<NavSection
heading="Forms"
location={location}
items={forms}
path="/forms"
/>
<NavSection
heading="Components"
location={location}
Expand Down
16 changes: 16 additions & 0 deletions www/src/examples/Form/FormControlDisabled.js
@@ -0,0 +1,16 @@
<>
<Form.Control
type="text"
placeholder="Disabled input"
aria-label="Disabled input example"
disabled
readOnly
/>
<br />
<Form.Control
type="text"
placeholder="Disabled readonly input"
aria-label="Disabled input example"
readOnly
/>
</>;
29 changes: 0 additions & 29 deletions www/src/examples/Form/GridAutoSizingCustom.js

This file was deleted.

0 comments on commit c8b59aa

Please sign in to comment.