Skip to content

Commit 441e8b1

Browse files
docs(components): update main components page to match sidebar sections (#4195)
Co-authored-by: Brandy Smith <[email protected]>
1 parent 6f5a148 commit 441e8b1

File tree

2 files changed

+20
-19
lines changed

2 files changed

+20
-19
lines changed

docs/components.md

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ import DocsCards from '@components/global/DocsCards';
1919
`}</style>
2020
</head>
2121

22-
Ionic apps are made of high-level building blocks called Components, which allow you to quickly construct the UI for your app. Ionic comes stock with a number of components, including cards, lists, and tabs. Once youre familiar with the basics, refer to the [API Index](api.md) for a complete list of each component and sub-component.
22+
Ionic apps are made of high-level building blocks called Components, which allow you to quickly construct the UI for your app. Ionic comes stock with a number of components, including cards, lists, and tabs. Once you're familiar with the basics, refer to the [API Index](api.md) for a complete list of each component and sub-component.
2323

2424
<intro-end />
2525

@@ -49,8 +49,9 @@ Ionic apps are made of high-level building blocks called Components, which allow
4949
</DocsCard>
5050

5151
<DocsCard header="Card" href="api/card" icon="/icons/component-card-icon.png">
52-
<!-- prettier-ignore -->
53-
<p>Cards are a great way to display an important piece of content, and can contain images, buttons, text, and more.</p>
52+
<p>
53+
Cards are a great way to display an important piece of content, and can contain images, buttons, text, and more.
54+
</p>
5455
</DocsCard>
5556

5657
<DocsCard header="Checkbox" href="api/checkbox" icon="/icons/component-checkbox-icon.png">
@@ -85,7 +86,7 @@ Ionic apps are made of high-level building blocks called Components, which allow
8586
<p>Infinite scroll allows you to load new data as the user scrolls through your app.</p>
8687
</DocsCard>
8788

88-
<DocsCard header="Input" href="api/input" icon="/icons/component-input-icon.png">
89+
<DocsCard header="Inputs" href="api/input" icon="/icons/component-input-icon.png">
8990
<p>Inputs provides a way for users to enter data in your app.</p>
9091
</DocsCard>
9192

@@ -119,10 +120,6 @@ Ionic apps are made of high-level building blocks called Components, which allow
119120
<p>Navigation is how users move between different pages in your app.</p>
120121
</DocsCard>
121122

122-
<DocsCard header="OTP Input" href="api/input-otp" icon="/icons/component-input-otp-icon.png">
123-
<p>OTP inputs offer a simple way to enter one-time passwords using multiple boxes with automatic focus.</p>
124-
</DocsCard>
125-
126123
<DocsCard header="Popover" href="api/popover" icon="/icons/component-popover-icon.png">
127124
<p>Popover provides an easy way to present information or options without changing contexts.</p>
128125
</DocsCard>
@@ -135,6 +132,10 @@ Ionic apps are made of high-level building blocks called Components, which allow
135132
<p>Radio inputs allow you to present a set of exclusive options.</p>
136133
</DocsCard>
137134

135+
<DocsCard header="Range" href="api/range" icon="/icons/component-range-icon.png">
136+
<p>Range sliders let users select a value by dragging a knob along a track.</p>
137+
</DocsCard>
138+
138139
<DocsCard header="Refresher" href="api/refresher" img="/icons/feature-component-refresher-icon.png">
139140
<p>Refresher provides pull-to-refresh functionality on a content component.</p>
140141
</DocsCard>
@@ -164,7 +165,7 @@ Ionic apps are made of high-level building blocks called Components, which allow
164165
</DocsCard>
165166

166167
<DocsCard header="Toast" href="api/toast" icon="/icons/component-toast-icon.png">
167-
<p>Toast is used to show a notification over the top of an app's content. It can be temporary or dismissible.</p>
168+
<p>Toasts are subtle notifications that appear over your app's content without interrupting user interaction.</p>
168169
</DocsCard>
169170

170171
<DocsCard header="Toggle" href="api/toggle" icon="/icons/component-toggle-icon.png">

sidebars.js

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -252,15 +252,15 @@ module.exports = {
252252
},
253253
{
254254
type: 'category',
255-
label: 'Action Sheet',
255+
label: 'Accordion',
256256
collapsed: false,
257-
items: ['api/action-sheet'],
257+
items: ['api/accordion', 'api/accordion-group'],
258258
},
259259
{
260260
type: 'category',
261-
label: 'Accordion',
261+
label: 'Action Sheet',
262262
collapsed: false,
263-
items: ['api/accordion', 'api/accordion-group'],
263+
items: ['api/action-sheet'],
264264
},
265265
{
266266
type: 'category',
@@ -276,7 +276,7 @@ module.exports = {
276276
},
277277
{
278278
type: 'category',
279-
label: 'Breadcrumb',
279+
label: 'Breadcrumbs',
280280
collapsed: false,
281281
items: ['api/breadcrumb', 'api/breadcrumbs'],
282282
},
@@ -337,19 +337,19 @@ module.exports = {
337337
},
338338
{
339339
type: 'category',
340-
label: 'Infinite Scroll',
340+
label: 'Icons',
341341
collapsed: false,
342-
items: ['api/infinite-scroll', 'api/infinite-scroll-content'],
342+
items: ['api/icon'],
343343
},
344344
{
345345
type: 'category',
346-
label: 'Icons',
346+
label: 'Infinite Scroll',
347347
collapsed: false,
348-
items: ['api/icon'],
348+
items: ['api/infinite-scroll', 'api/infinite-scroll-content'],
349349
},
350350
{
351351
type: 'category',
352-
label: 'Input',
352+
label: 'Inputs',
353353
collapsed: false,
354354
items: ['api/input', 'api/input-password-toggle', 'api/input-otp', 'api/textarea'],
355355
},

0 commit comments

Comments
 (0)