` and can be added inside of any element.
It's important to set [relative positioning](https://developer.mozilla.org/en-US/docs/Web/CSS/position) on the parent element because the ripple effect is absolutely positioned and will cover its closest parent that has relative positioning. The parent element should also be given the `ion-activatable` class, which tells the ripple effect that the element is clickable. It's recommended to add `overflow: hidden` to the parent element if the ripple is overflowing its container.
-
## Basic Usage
import Basic from '@site/static/usage/v8/ripple-effect/basic/index.md';
-
## Type
There are two types of ripple effects: `"bounded"` and `"unbounded"`. The default type, `"bounded"`, will expand the ripple effect from the click position outwards. To add a ripple effect that always starts in the center of the element and expands in a circle, set the type to `"unbounded"`.
@@ -38,7 +39,6 @@ import Type from '@site/static/usage/v8/ripple-effect/type/index.md';
-
## Customizing
The ripple can be customized to a different color through CSS. By default the ripple color is set to inherit the text color, which is generally the body color. This can be changed by setting the CSS `color` on the parent or the ripple effect itself.
@@ -47,21 +47,26 @@ import Customizing from '@site/static/usage/v8/ripple-effect/customizing/index.m
-
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/route-redirect.md b/versioned_docs/version-v8/api/route-redirect.md
index 29bdb84b388..585b617dd2c 100644
--- a/versioned_docs/version-v8/api/route-redirect.md
+++ b/versioned_docs/version-v8/api/route-redirect.md
@@ -1,5 +1,5 @@
---
-title: "ion-route-redirect"
+title: 'ion-route-redirect'
---
import Props from '@ionic-internal/component-api/v8/route-redirect/props.md';
@@ -11,25 +11,26 @@ import Slots from '@ionic-internal/component-api/v8/route-redirect/slots.md';
ion-route-redirect: Redirect 'from' a URL 'to' Another URL
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
A route redirect can only be used with an `ion-router` as a direct child of it.
:::note
- Note: this component should only be used with vanilla and Stencil JavaScript projects. For Angular projects, use [`ion-router-outlet`](router-outlet.md) and the Angular router.
+Note: this component should only be used with vanilla and Stencil JavaScript projects. For Angular projects, use [`ion-router-outlet`](router-outlet.md) and the Angular router.
:::
-
The route redirect has two configurable properties:
- - `from`
- - `to`
-It redirects "from" a URL "to" another URL. When the defined `ion-route-redirect` rule matches, the router will redirect from the path specified in the `from` property to the path in the `to` property. In order for a redirect to occur the `from` path needs to be an exact match to the navigated URL.
+- `from`
+- `to`
+It redirects "from" a URL "to" another URL. When the defined `ion-route-redirect` rule matches, the router will redirect from the path specified in the `from` property to the path in the `to` property. In order for a redirect to occur the `from` path needs to be an exact match to the navigated URL.
## Multiple Route Redirects
@@ -48,9 +49,6 @@ Take the following two redirects:
If the user navigates to `/admin` the router will redirect to `/login` and stop there. It will never evaluate more than one redirect.
-
-
-
## Usage
```html
@@ -96,19 +94,25 @@ routeRedirect.setAttribute('to', isLoggedIn ? undefined : '/login');
```
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
-
\ No newline at end of file
+
+
diff --git a/versioned_docs/version-v8/api/route.md b/versioned_docs/version-v8/api/route.md
index 068ea064bcf..815255c6695 100644
--- a/versioned_docs/version-v8/api/route.md
+++ b/versioned_docs/version-v8/api/route.md
@@ -1,6 +1,7 @@
---
-title: "ion-route"
+title: 'ion-route'
---
+
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
@@ -13,19 +14,20 @@ import Slots from '@ionic-internal/component-api/v8/route/slots.md';
ion-route: API Route Component for Ionic Framework Apps
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
The route component takes a component and renders it when the Browser URL matches the url property.
:::note
- Note: this component should only be used with vanilla and Stencil JavaScript projects. For Angular projects, use [`ion-router-outlet`](router-outlet.md) and the Angular router.
+Note: this component should only be used with vanilla and Stencil JavaScript projects. For Angular projects, use [`ion-router-outlet`](router-outlet.md) and the Angular router.
:::
-
## Navigation Hooks
Navigation hooks can be used to perform tasks or act as navigation guards. Hooks are used by providing functions to the `beforeEnter` and `beforeLeave` properties on each `ion-route`. Returning `true` allows navigation to proceed, while returning `false` causes it to be cancelled. Returning an object of type `NavigationHookOptions` allows you to redirect navigation to another page.
@@ -41,9 +43,6 @@ interface NavigationHookOptions {
}
```
-
-
-
## Usage
@@ -68,23 +67,23 @@ newMessagePage.beforeLeave = hasUnsavedDataGuard;
const isLoggedInGuard = async () => {
const isLoggedIn = await UserData.isLoggedIn(); // Replace this with actual login validation
-
+
if (isLoggedIn) {
return true;
} else {
return { redirect: '/login' }; // If a user is not logged in, they will be redirected to the /login page
}
-}
+};
const hasUnsavedDataGuard = async () => {
const hasUnsavedData = await checkData(); // Replace this with actual validation
-
+
if (hasUnsavedData) {
return await confirmDiscardChanges();
} else {
return true;
}
-}
+};
const confirmDiscardChanges = async () => {
const alert = document.createElement('ion-alert');
@@ -98,23 +97,21 @@ const confirmDiscardChanges = async () => {
{
text: 'Discard',
role: 'destructive',
- }
+ },
];
-
+
document.body.appendChild(alert);
-
+
await alert.present();
-
+
const { role } = await alert.onDidDismiss();
-
- return (role === 'Cancel') ? false : true;
-}
-```
+ return role === 'Cancel' ? false : true;
+};
+```
-
```typescript
@@ -123,7 +120,7 @@ import { alertController } from '@ionic/core';
@Component({
tag: 'router-example',
- styleUrl: 'router-example.css'
+ styleUrl: 'router-example.css',
})
export class RouterExample {
render() {
@@ -134,29 +131,29 @@ export class RouterExample {
- )
+ );
}
}
const isLoggedInGuard = async () => {
const isLoggedIn = await UserData.isLoggedIn(); // Replace this with actual login validation
-
+
if (isLoggedIn) {
return true;
} else {
return { redirect: '/login' }; // If a user is not logged in, they will be redirected to the /login page
}
-}
+};
const hasUnsavedDataGuard = async () => {
const hasUnsavedData = await checkData(); // Replace this with actual validation
-
+
if (hasUnsavedData) {
return await confirmDiscardChanges();
} else {
return true;
}
-}
+};
const confirmDiscardChanges = async () => {
const alert = await alertController.create({
@@ -170,22 +167,20 @@ const confirmDiscardChanges = async () => {
{
text: 'Discard',
role: 'destructive',
- }
- ]
+ },
+ ],
});
-
+
await alert.present();
-
+
const { role } = await alert.onDidDismiss();
-
- return (role === 'Cancel') ? false : true;
-}
-```
+ return role === 'Cancel' ? false : true;
+};
+```
-
```html
@@ -203,24 +198,24 @@ const confirmDiscardChanges = async () => {
const isLoggedInGuard = async () => {
const isLoggedIn = await UserData.isLoggedIn(); // Replace this with actual login validation
-
+
if (isLoggedIn) {
return true;
} else {
return { redirect: '/login' }; // If a user is not logged in, they will be redirected to the /login page
}
- }
-
+ };
+
const hasUnsavedDataGuard = async () => {
const hasUnsavedData = await checkData(); // Replace this with actual validation
-
+
if (hasUnsavedData) {
return await confirmDiscardChanges();
} else {
return true;
}
- }
-
+ };
+
const confirmDiscardChanges = async () => {
const alert = await alertController.create({
header: 'Discard Unsaved Changes?',
@@ -233,16 +228,16 @@ const confirmDiscardChanges = async () => {
{
text: 'Discard',
role: 'destructive',
- }
- ]
+ },
+ ],
});
-
+
await alert.present();
-
+
const { role } = await alert.onDidDismiss();
-
- return (role === 'Cancel') ? false : true;
- }
+
+ return role === 'Cancel' ? false : true;
+ };
```
@@ -251,19 +246,25 @@ const confirmDiscardChanges = async () => {
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
-
\ No newline at end of file
+
+
diff --git a/versioned_docs/version-v8/api/router-link.md b/versioned_docs/version-v8/api/router-link.md
index 1eb53a1ab53..98a69c783e7 100644
--- a/versioned_docs/version-v8/api/router-link.md
+++ b/versioned_docs/version-v8/api/router-link.md
@@ -1,5 +1,5 @@
---
-title: "ion-router-link"
+title: 'ion-router-link'
---
import Props from '@ionic-internal/component-api/v8/router-link/props.md';
@@ -11,7 +11,10 @@ import Slots from '@ionic-internal/component-api/v8/router-link/slots.md';
ion-router-link: Navigate To a Specified Link
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
@@ -21,25 +24,31 @@ import EncapsulationPill from '@components/page/api/EncapsulationPill';
The router link component is used for navigating to a specified link. Similar to the browser's anchor tag, it can accept a href for the location, and a direction for the transition animation.
:::note
- Note: this component should only be used with vanilla and Stencil JavaScript projects. For Angular projects, use an `` and `routerLink` with the Angular router.
+Note: this component should only be used with vanilla and Stencil JavaScript projects. For Angular projects, use an `` and `routerLink` with the Angular router.
:::
See the [Router](./router) documentation for more information.
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
-
\ No newline at end of file
+
+
diff --git a/versioned_docs/version-v8/api/router-outlet.md b/versioned_docs/version-v8/api/router-outlet.md
index d16075a5f56..39dc07e815a 100644
--- a/versioned_docs/version-v8/api/router-outlet.md
+++ b/versioned_docs/version-v8/api/router-outlet.md
@@ -1,5 +1,5 @@
---
-title: "ion-router-outlet"
+title: 'ion-router-outlet'
---
import Props from '@ionic-internal/component-api/v8/router-outlet/props.md';
@@ -9,13 +9,10 @@ import Parts from '@ionic-internal/component-api/v8/router-outlet/parts.md';
import CustomProps from '@ionic-internal/component-api/v8/router-outlet/custom-props.mdx';
import Slots from '@ionic-internal/component-api/v8/router-outlet/slots.md';
-
-
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
The router outlet behaves in a similar way to Angular's built-in router outlet component and Vue's router view component, but contains the logic for providing a stacked navigation, and animating views in and out.
Although router outlet has methods for navigating around, it's recommended to use the navigation methods in your framework's router.
@@ -24,36 +21,37 @@ Although router outlet has methods for navigating around, it's recommended to us
Routes rendered in a Router Outlet have access to specific Ionic events that are wired up to animations
-
| Event Name | Trigger |
-|--------------------|--------------------------------------------------------------------|
+| ------------------ | ------------------------------------------------------------------ |
| `ionViewWillEnter` | Fired when the component routing to is about to animate into view. |
| `ionViewDidEnter` | Fired when the component routing to has finished animating. |
| `ionViewWillLeave` | Fired when the component routing from is about to animate. |
| `ionViewDidLeave` | Fired when the component routing to has finished animating. |
-
These event tie into Ionic's animation system and can be used to coordinate parts of your app when a Components is done with its animation. These events are not a replacement for your framework's own event system, but an addition.
For handling Router Guards, the older `ionViewCanEnter` and `ionViewCanLeave` have been replaced with their framework specific equivalent. For Angular, there are [Router Guards](https://angular.io/guide/router#milestone-5-route-guards).
-
-
-
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
-
\ No newline at end of file
+
+
diff --git a/versioned_docs/version-v8/api/router.md b/versioned_docs/version-v8/api/router.md
index 14019626cf7..b910f227e46 100644
--- a/versioned_docs/version-v8/api/router.md
+++ b/versioned_docs/version-v8/api/router.md
@@ -1,5 +1,5 @@
---
-title: "ion-router"
+title: 'ion-router'
---
import Props from '@ionic-internal/component-api/v8/router/props.md';
@@ -11,20 +11,20 @@ import Slots from '@ionic-internal/component-api/v8/router/slots.md';
ion-router: Router Component to Coordinate URL Navigation
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
-
The router is a component for handling routing inside vanilla and Stencil JavaScript projects.
:::note
- Note: This component should only be used with vanilla and Stencil JavaScript projects. See the routing guides for [Angular](../angular/navigation), [React](../react/navigation), and [Vue](../vue/navigation) for framework-specific routing solutions.
+Note: This component should only be used with vanilla and Stencil JavaScript projects. See the routing guides for [Angular](../angular/navigation), [React](../react/navigation), and [Vue](../vue/navigation) for framework-specific routing solutions.
:::
-
Apps should have a single `ion-router` component in the codebase.
This component controls all interactions with the browser history and it aggregates updates through an event system.
@@ -63,8 +63,6 @@ interface RouterCustomEvent extends CustomEvent {
}
```
-
-
## Usage
```html
@@ -91,24 +89,28 @@ interface RouterCustomEvent extends CustomEvent {
-
```
-
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
-
\ No newline at end of file
+
+
diff --git a/versioned_docs/version-v8/api/row.md b/versioned_docs/version-v8/api/row.md
index 02919d79a35..45e02493948 100644
--- a/versioned_docs/version-v8/api/row.md
+++ b/versioned_docs/version-v8/api/row.md
@@ -1,6 +1,7 @@
---
-title: "ion-row"
+title: 'ion-row'
---
+
import Props from '@ionic-internal/component-api/v8/row/props.md';
import Events from '@ionic-internal/component-api/v8/row/events.md';
import Methods from '@ionic-internal/component-api/v8/row/methods.md';
@@ -10,7 +11,10 @@ import Slots from '@ionic-internal/component-api/v8/row/slots.md';
ion-row: Horizontal Row Components of the Grid System
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
@@ -22,28 +26,30 @@ Rows are horizontal components of the [grid](./grid) system and contain varying
See the [grid](./grid) documentation for more information.
-
## Row Alignment
By default, columns will stretch to fill the entire height of the row and wrap when necessary. Rows are [flex containers](https://developer.mozilla.org/en-US/docs/Glossary/Flex_Container), so there are several [CSS classes](/docs/layout/css-utilities#flex-container-properties) that can be applied to a row to customize this behavior.
-
-
-
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/searchbar.md b/versioned_docs/version-v8/api/searchbar.md
index fb0b0d49765..8bb4dfbf0e9 100644
--- a/versioned_docs/version-v8/api/searchbar.md
+++ b/versioned_docs/version-v8/api/searchbar.md
@@ -1,6 +1,7 @@
---
-title: "ion-searchbar"
+title: 'ion-searchbar'
---
+
import Props from '@ionic-internal/component-api/v8/searchbar/props.md';
import Events from '@ionic-internal/component-api/v8/searchbar/events.md';
import Methods from '@ionic-internal/component-api/v8/searchbar/methods.md';
@@ -10,7 +11,10 @@ import Slots from '@ionic-internal/component-api/v8/searchbar/slots.md';
ion-searchbar: Search Bar for Searching a Collection
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
@@ -19,14 +23,12 @@ import EncapsulationPill from '@components/page/api/EncapsulationPill';
Searchbars represent a text field that can be used to search through a collection. They can be displayed inside of a toolbar or the main content. A searchbar should be used instead of an input to search lists.
-
## Basic Usage
import Basic from '@site/static/usage/v8/searchbar/basic/index.md';
-
## Search Icon
A search icon is displayed to the left of the input field in a searchbar. It can be customized to any [Ionicon](https://ionic.io/ionicons/).
@@ -35,7 +37,6 @@ import SearchIcon from '@site/static/usage/v8/searchbar/search-icon/index.md';
-
## Clear Button
A clear button is displayed when a searchbar has a value or upon entering input in the searchbar's text field. Clicking on the clear button will erase the text field and the input will remain focused. By default, the clear button is set to show when focusing the searchbar, but it can be set to always show or never show. The icon inside of the clear button can also be customized to any [Ionicon](https://ionic.io/ionicons/).
@@ -44,7 +45,6 @@ import ClearButton from '@site/static/usage/v8/searchbar/clear-button/index.md';
-
## Cancel Button
A cancel button can be enabled which will clear the input and lose the focus upon click. By default, cancel buttons are set to never show, but they can be set to always show or only show when focusing the searchbar. The cancel button is displayed as text in `ios` mode, and as an icon in `md` mode. Both the text and icon can be customized using different properties, with the icon accepting any [Ionicon](https://ionic.io/ionicons/).
@@ -53,17 +53,16 @@ import CancelButton from '@site/static/usage/v8/searchbar/cancel-button/index.md
-
## Searchbars in Toolbars
Searchbars are styled to look native when placed inside of a toolbar. In iOS, searchbars should be placed in their own toolbar, under a toolbar that contains the page title. In Material Design, searchbars are either persistently displayed in their own toolbar, or expand over a toolbar containing the page title.
+
import Toolbar from '@site/static/usage/v8/toolbar/searchbars/index.md';
-
## Debounce
A debounce can be set on the searchbar in order to delay triggering the `ionInput` event. This is useful when querying data, as it can be used to wait to make a request instead of requesting the data each time a character is entered in the input.
@@ -72,7 +71,6 @@ import Debounce from '@site/static/usage/v8/searchbar/debounce/index.md';
-
## Theming
### Colors
@@ -89,7 +87,6 @@ import CSSProps from '@site/static/usage/v8/searchbar/theming/css-properties/ind
-
## Keyboard Display
### Android
@@ -121,21 +118,26 @@ interface SearchbarCustomEvent extends CustomEvent {
}
```
-
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/segment-button.md b/versioned_docs/version-v8/api/segment-button.md
index 475d0f23597..1f5f044b35c 100644
--- a/versioned_docs/version-v8/api/segment-button.md
+++ b/versioned_docs/version-v8/api/segment-button.md
@@ -1,6 +1,7 @@
---
-title: "ion-segment-button"
+title: 'ion-segment-button'
---
+
import Props from '@ionic-internal/component-api/v8/segment-button/props.md';
import Events from '@ionic-internal/component-api/v8/segment-button/events.md';
import Methods from '@ionic-internal/component-api/v8/segment-button/methods.md';
@@ -10,24 +11,24 @@ import Slots from '@ionic-internal/component-api/v8/segment-button/slots.md';
ion-segment-button | Segment Button Icon and Segment Value
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
Segment buttons are groups of related buttons inside of a [segment](segment.md). They are displayed in a horizontal row. A segment button can be selected by default by setting the `value` of the segment to the `value` of the segment button. Only one segment button can be selected at a time.
-
## Basic Usage
import Basic from '@site/static/usage/v8/segment-button/basic/index.md';
-
## Layout
The `layout` property is set to `"icon-top"` by default. When a segment button has both an icon and a label, it will display the icon on top of the label. This behavior can be changed by setting the `layout` property to `"icon-bottom"`, `"icon-start"`, or `"icon-end"` which will show the icon below the label, to the start of the label (left in LTR and right in RTL) or to the end of the label (right in LTR and left in RTL), respectively.
@@ -36,36 +37,40 @@ import Layout from '@site/static/usage/v8/segment-button/layout/index.md';
-
## Theming
+
### CSS Shadow Parts
import CSSParts from '@site/static/usage/v8/segment-button/theming/css-shadow-parts/index.md';
-
### CSS Custom Properties
import CSSProps from '@site/static/usage/v8/segment-button/theming/css-properties/index.md';
-
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/segment-content.md b/versioned_docs/version-v8/api/segment-content.md
index 3c17b07eceb..2e2dd91e52d 100644
--- a/versioned_docs/version-v8/api/segment-content.md
+++ b/versioned_docs/version-v8/api/segment-content.md
@@ -1,5 +1,5 @@
---
-title: "ion-segment-content"
+title: 'ion-segment-content'
---
import Props from '@ionic-internal/component-api/v8/segment-content/props.md';
@@ -11,7 +11,10 @@ import Slots from '@ionic-internal/component-api/v8/segment-content/slots.md';
ion-segment-content: Display control element for swipeable segments
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
@@ -34,19 +37,25 @@ import Swipeable from '@site/static/usage/v8/segment/swipeable/index.md';
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
-
\ No newline at end of file
+
+
diff --git a/versioned_docs/version-v8/api/segment-view.md b/versioned_docs/version-v8/api/segment-view.md
index 5d0054c4ff8..8aca46b4979 100644
--- a/versioned_docs/version-v8/api/segment-view.md
+++ b/versioned_docs/version-v8/api/segment-view.md
@@ -1,5 +1,5 @@
---
-title: "ion-segment-view"
+title: 'ion-segment-view'
---
import Props from '@ionic-internal/component-api/v8/segment-view/props.md';
@@ -11,7 +11,10 @@ import Slots from '@ionic-internal/component-api/v8/segment-view/slots.md';
ion-segment-view: Controller element for swipeable segments
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
@@ -22,19 +25,25 @@ Segment view is a wrapper element that links a group of [segment contents](./seg
See our [swipeable segments](./segment.md#swipeable-segments) documentation for more information on how to use segment views.
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
-
\ No newline at end of file
+
+
diff --git a/versioned_docs/version-v8/api/segment.md b/versioned_docs/version-v8/api/segment.md
index f07a1a1a5a4..102efe7f4cc 100644
--- a/versioned_docs/version-v8/api/segment.md
+++ b/versioned_docs/version-v8/api/segment.md
@@ -1,6 +1,7 @@
---
-title: "ion-segment"
+title: 'ion-segment'
---
+
import Props from '@ionic-internal/component-api/v8/segment/props.md';
import Events from '@ionic-internal/component-api/v8/segment/events.md';
import Methods from '@ionic-internal/component-api/v8/segment/methods.md';
@@ -10,19 +11,20 @@ import Slots from '@ionic-internal/component-api/v8/segment/slots.md';
ion-segment: API Documentation for Segmented Controls
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
Segments display a group of related buttons, sometimes known as segmented controls, in a horizontal row. They can be displayed inside of a toolbar or the main content.
Their functionality is similar to tabs, where selecting one will deselect all others. Segments are useful for toggling between different views inside of the content. Tabs should be used instead of a segment when clicking on a control should navigate between pages.
-
## Basic Usage
Segments consist of [segment buttons](./segment-button) with a `value` property on each button. Set the `value` property on the segment to match the value of a button to select that button. Segments can also be disabled to prevent users from interacting with them.
@@ -31,7 +33,6 @@ import Basic from '@site/static/usage/v8/segment/basic/index.md';
-
## Scrollable Segments
Segments are not scrollable by default. Each segment button has a fixed width, and the width is determined by dividing the number of segment buttons by the screen width. This ensures that each segment button can be displayed on the screen without having to scroll. As a result, some segment buttons with longer labels may get cut off. To avoid this we recommend either using a shorter label or switching to a scrollable segment by setting the `scrollable` property to `true`. This will cause the segment to scroll horizontally, but will allow each segment button to have a variable width.
@@ -40,15 +41,14 @@ import Scrollable from '@site/static/usage/v8/segment/scrollable/index.md';
-
## Segments in Toolbars
+
import Toolbar from '@site/static/usage/v8/toolbar/segments/index.md';
-
## Swipeable Segments
Each [segment button](./segment-button.md) can be associated with a [segment content](./segment-content.md) element that will be displayed
@@ -79,7 +79,6 @@ import CSSProps from '@site/static/usage/v8/segment/theming/css-properties/index
-
## Accessibility
### Keyboard Interactions
@@ -115,21 +114,26 @@ interface SegmentCustomEvent extends CustomEvent {
}
```
-
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/select-option.md b/versioned_docs/version-v8/api/select-option.md
index 7da4f763162..28525b9992a 100644
--- a/versioned_docs/version-v8/api/select-option.md
+++ b/versioned_docs/version-v8/api/select-option.md
@@ -1,6 +1,7 @@
---
-title: "ion-select-option"
+title: 'ion-select-option'
---
+
import Props from '@ionic-internal/component-api/v8/select-option/props.md';
import Events from '@ionic-internal/component-api/v8/select-option/events.md';
import Methods from '@ionic-internal/component-api/v8/select-option/methods.md';
@@ -10,33 +11,40 @@ import Slots from '@ionic-internal/component-api/v8/select-option/slots.md';
ion-select-option: Option For a Select Dialog
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
Select Options are components that are child elements of a Select. Each option defined is passed and displayed in the Select dialog.
For usage examples, see the [Select](./select) documentation.
-
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
-
\ No newline at end of file
+
+
diff --git a/versioned_docs/version-v8/api/select.md b/versioned_docs/version-v8/api/select.md
index 2ee43b4751e..20138475e3a 100644
--- a/versioned_docs/version-v8/api/select.md
+++ b/versioned_docs/version-v8/api/select.md
@@ -1,6 +1,7 @@
---
-title: "ion-select"
+title: 'ion-select'
---
+
import Props from '@ionic-internal/component-api/v8/select/props.md';
import Events from '@ionic-internal/component-api/v8/select/events.md';
import Methods from '@ionic-internal/component-api/v8/select/methods.md';
@@ -10,14 +11,16 @@ import Slots from '@ionic-internal/component-api/v8/select/slots.md';
ion-select: Select One or Multiple Value Boxes or Placeholders
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
Selects are form controls to select an option, or options, from a set of options. When a user taps the select, a dialog appears with all of the options in a large, easy to select list.
A select should be used with child `` elements. If the child option is not given a `value` attribute then its text will be used as the value.
@@ -94,7 +97,6 @@ import AlertExample from '@site/static/usage/v8/select/basic/single-selection/in
-
### Action Sheet
import ActionSheetExample from '@site/static/usage/v8/select/interfaces/action-sheet/index.md';
@@ -291,14 +293,15 @@ interface SelectCustomEvent extends CustomEvent {
Ionic's keyboard interactions follow the implementation patterns of the web instead of the native iOS select for a consistent experience across all platforms.
These keyboard interactions apply to all `ion-select` elements when the following conditions are met:
+
- The select is closed.
- The select is focused.
- The select is not disabled.
-| Key | Description |
-| ------------------ | ------------------------------------------------------------ |
-| Enter | Opens the overlay and focuses on the first selected option. If there is no selected option, then it focuses on the first option. |
-| Space | Opens the overlay and focuses on the first selected option. If there is no selected option, then it focuses on the first option. |
+| Key | Description |
+| ---------------- | -------------------------------------------------------------------------------------------------------------------------------- |
+| Enter | Opens the overlay and focuses on the first selected option. If there is no selected option, then it focuses on the first option. |
+| Space | Opens the overlay and focuses on the first selected option. If there is no selected option, then it focuses on the first option. |
#### Single Selection
@@ -306,16 +309,16 @@ Single selection keyboard interaction follows the [ARIA implementation patterns
These keyboard interactions apply to `ion-action-sheet`, `ion-alert`, `ion-popover`, and `ion-modal` elements when the overlay is presented and focused.
-| Key | Description |
-| --------------------- | ------------------------------------------------------------ |
-| ArrowDown | Focuses and selects the next option in the list. If there is no next option, selection will cycle to the first option. |
-| ArrowLeft | Focuses and selects the previous option in the list. If there is no previous option, selection will cycle to the last option. |
-| ArrowRight | Focuses and selects the next option in the list. If there is no next option, selection will cycle to the first option. |
-| ArrowUp | Focuses and selects the previous option in the list. If there is no previous option, selection will cycle to the last option. |
+| Key | Description |
+| --------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ |
+| ArrowDown | Focuses and selects the next option in the list. If there is no next option, selection will cycle to the first option. |
+| ArrowLeft | Focuses and selects the previous option in the list. If there is no previous option, selection will cycle to the last option. |
+| ArrowRight | Focuses and selects the next option in the list. If there is no next option, selection will cycle to the first option. |
+| ArrowUp | Focuses and selects the previous option in the list. If there is no previous option, selection will cycle to the last option. |
| Enter | If an option is focused, it will select the option. Overlays **without** an 'OK' button will commit the value immediately, dismiss the overlay and return focus to the `ion-select` element.
If the 'OK' button is focused, it will save the user's selection, dismiss the overlay and return focus to the `ion-select` element. |
-| Escape | Closes the overlay without changing the submitted option. Returns the focus back to the `ion-select` element. |
-| Space | If the focused radio button is not checked, unchecks the currently checked radio button and checks the focused radio button. Otherwise, does nothing. If the overlay does not have an 'OK' button, the value will be committed immediately and the overlay will dismiss. |
-| Tab | Moves focus to the next focusable element (cancel button, 'OK' button, or either the selection or the first option) on the overlay. If the next focusable element is an option, then it will focus on the selected option, otherwise it will focus the first option. |
+| Escape | Closes the overlay without changing the submitted option. Returns the focus back to the `ion-select` element. |
+| Space | If the focused radio button is not checked, unchecks the currently checked radio button and checks the focused radio button. Otherwise, does nothing. If the overlay does not have an 'OK' button, the value will be committed immediately and the overlay will dismiss. |
+| Tab | Moves focus to the next focusable element (cancel button, 'OK' button, or either the selection or the first option) on the overlay. If the next focusable element is an option, then it will focus on the selected option, otherwise it will focus the first option. |
#### Multiple Selection
@@ -323,27 +326,33 @@ Multiple selection keyboard interaction follows the [ARIA implementation pattern
These keyboard interactions apply to `ion-alert`, `ion-popover`, and `ion-modal` elements when the overlay is presented and multiple selection is enabled.
-| Key | Description |
-| ------------------ | ------------------------------------------------------------ |
-| Enter | When the 'OK' button is focused, it will save the user's selection, dismiss the overlay, and return focus to the `ion-select` element. |
-| Escape | Closes the overlay without changing the submitted option(s). Returns the focus back to the `ion-select` element. |
-| Space | Selects or deselects the currently focused option. This does not deselect the other selected options. If the overlay does not have an 'OK' button, the value will be committed immediately. |
-| Tab | Move focus to the next focusable element (cancel button, 'OK' button, or any of the options) on the overlay. If the next focusable element is the options list, then it should iterate through each option. |
+| Key | Description |
+| ----------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
+| Enter | When the 'OK' button is focused, it will save the user's selection, dismiss the overlay, and return focus to the `ion-select` element. |
+| Escape | Closes the overlay without changing the submitted option(s). Returns the focus back to the `ion-select` element. |
+| Space | Selects or deselects the currently focused option. This does not deselect the other selected options. If the overlay does not have an 'OK' button, the value will be committed immediately. |
+| Tab | Move focus to the next focusable element (cancel button, 'OK' button, or any of the options) on the overlay. If the next focusable element is the options list, then it should iterate through each option. |
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/skeleton-text.md b/versioned_docs/version-v8/api/skeleton-text.md
index 435b08f24e1..25a078f8b0f 100644
--- a/versioned_docs/version-v8/api/skeleton-text.md
+++ b/versioned_docs/version-v8/api/skeleton-text.md
@@ -1,6 +1,7 @@
---
-title: "ion-skeleton-text"
+title: 'ion-skeleton-text'
---
+
import Props from '@ionic-internal/component-api/v8/skeleton-text/props.md';
import Events from '@ionic-internal/component-api/v8/skeleton-text/events.md';
import Methods from '@ionic-internal/component-api/v8/skeleton-text/methods.md';
@@ -10,15 +11,16 @@ import Slots from '@ionic-internal/component-api/v8/skeleton-text/slots.md';
ion-skeleton-text: Skeleton Loading Placeholder for Text
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
-
Skeleton Text is a component for rendering placeholder content. The element will render a gray block at the specified width.
## Basic Usage
@@ -36,19 +38,25 @@ import CSSProps from '@site/static/usage/v8/skeleton-text/theming/css-properties
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/spinner.md b/versioned_docs/version-v8/api/spinner.md
index d63a67aff4a..6b8cb081f0a 100644
--- a/versioned_docs/version-v8/api/spinner.md
+++ b/versioned_docs/version-v8/api/spinner.md
@@ -1,6 +1,7 @@
---
-title: "ion-spinner"
+title: 'ion-spinner'
---
+
import Props from '@ionic-internal/component-api/v8/spinner/props.md';
import Events from '@ionic-internal/component-api/v8/spinner/events.md';
import Methods from '@ionic-internal/component-api/v8/spinner/methods.md';
@@ -10,17 +11,18 @@ import Slots from '@ionic-internal/component-api/v8/spinner/slots.md';
ion-spinner: Animated Spinner Icon Components and Properties
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
The Spinner component provides a variety of animated SVG spinners. Spinners are visual indicators that the app is loading content or performing another process that the user needs to wait on.
-
## Basic Usage
The default spinner is based on the mode. When the mode is `ios` the spinner will be `"lines"`, and when the mode is `md` the spinner will be `"circular"`. If the `name` property is set, then that spinner will be used instead of the mode specific spinner.
@@ -51,21 +53,26 @@ import CSSProps from '@site/static/usage/v8/spinner/theming/css-properties/index
-
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/split-pane.md b/versioned_docs/version-v8/api/split-pane.md
index 77b192beb76..ee3f2601efe 100644
--- a/versioned_docs/version-v8/api/split-pane.md
+++ b/versioned_docs/version-v8/api/split-pane.md
@@ -1,5 +1,5 @@
---
-title: "ion-split-pane"
+title: 'ion-split-pane'
---
import Props from '@ionic-internal/component-api/v8/split-pane/props.md';
@@ -11,7 +11,10 @@ import Slots from '@ionic-internal/component-api/v8/split-pane/slots.md';
ion-split-pane: Split Plane for Menus and Multi-View Layouts
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
@@ -26,7 +29,7 @@ If the device's screen width is below a certain size, the split pane will collap
## Basic Usage
:::note
-This demo sets the `when` property to `'xs'` so the split pane always shows up. Your Ionic application does not need this if you want the split pane to collapse on smaller viewports. See [Setting Breakpoints](#setting-breakpoints) for more information.
+This demo sets the `when` property to `'xs'` so the split pane always shows up. Your Ionic application does not need this if you want the split pane to collapse on smaller viewports. See [Setting Breakpoints](#setting-breakpoints) for more information.
:::
import Basic from '@site/static/usage/v8/split-pane/basic/index.md';
@@ -37,7 +40,6 @@ import Basic from '@site/static/usage/v8/split-pane/basic/index.md';
By default, the split pane will expand when the screen is larger than 992px. To customize this, pass a breakpoint in the `when` property. The `when` property can accept a boolean value, any valid media query, or one of Ionic's predefined sizes.
-
```html
@@ -46,14 +48,14 @@ By default, the split pane will expand when the screen is larger than 992px. To
```
+| Size | Value | Description |
+| ---- | --------------------- | --------------------------------------------------------------------- |
+| `xs` | `(min-width: 0px)` | Show the split-pane when the min-width is 0px (meaning, always) |
+| `sm` | `(min-width: 576px)` | Show the split-pane when the min-width is 576px |
+| `md` | `(min-width: 768px)` | Show the split-pane when the min-width is 768px |
+| `lg` | `(min-width: 992px)` | Show the split-pane when the min-width is 992px (default break point) |
+| `xl` | `(min-width: 1200px)` | Show the split-pane when the min-width is 1200px |
- | Size | Value | Description |
- |------|-----------------------|-----------------------------------------------------------------------|
- | `xs` | `(min-width: 0px)` | Show the split-pane when the min-width is 0px (meaning, always) |
- | `sm` | `(min-width: 576px)` | Show the split-pane when the min-width is 576px |
- | `md` | `(min-width: 768px)` | Show the split-pane when the min-width is 768px |
- | `lg` | `(min-width: 992px)` | Show the split-pane when the min-width is 992px (default break point) |
- | `xl` | `(min-width: 1200px)` | Show the split-pane when the min-width is 1200px |
## Theming
### CSS Custom Properties
@@ -63,19 +65,25 @@ import CSSProperties from '@site/static/usage/v8/split-pane/theming/css-properti
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
-
\ No newline at end of file
+
+
diff --git a/versioned_docs/version-v8/api/tab-bar.md b/versioned_docs/version-v8/api/tab-bar.md
index 4d5372db084..a3114b87d23 100644
--- a/versioned_docs/version-v8/api/tab-bar.md
+++ b/versioned_docs/version-v8/api/tab-bar.md
@@ -1,6 +1,7 @@
---
-title: "ion-tab-bar"
+title: 'ion-tab-bar'
---
+
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
@@ -13,19 +14,18 @@ import Slots from '@ionic-internal/component-api/v8/tab-bar/slots.md';
ion-tab-bar: Tab Bar Component with CSS Custom Properties
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
The tab bar is a UI component that contains a set of [tab buttons](tab-button.md). A tab bar must be provided inside of [tabs](tabs.md) to communicate with each [tab](tab.md).
-
-
-
## Usage
@@ -51,7 +51,6 @@ The tab bar is a UI component that contains a set of [tab buttons](tab-button.md
-
```html
@@ -78,7 +77,6 @@ The tab bar is a UI component that contains a set of [tab buttons](tab-button.md
-
```tsx
@@ -106,10 +104,8 @@ export const TabBarExample: React.FC = () => (
);
```
-
-
```html
@@ -131,8 +127,8 @@ export const TabBarExample: React.FC = () => (
```
@@ -153,19 +149,25 @@ import InsideTabBar from '@site/static/usage/v8/badge/inside-tab-bar/index.md';
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/tab-button.md b/versioned_docs/version-v8/api/tab-button.md
index d8b151d777c..4751cc2bc2f 100644
--- a/versioned_docs/version-v8/api/tab-button.md
+++ b/versioned_docs/version-v8/api/tab-button.md
@@ -1,6 +1,7 @@
---
-title: "ion-tab-button"
+title: 'ion-tab-button'
---
+
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
@@ -11,20 +12,14 @@ import Parts from '@ionic-internal/component-api/v8/tab-button/parts.md';
import CustomProps from '@ionic-internal/component-api/v8/tab-button/custom-props.mdx';
import Slots from '@ionic-internal/component-api/v8/tab-button/slots.md';
-
-
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
A tab button is a UI component that is placed inside of a [tab bar](tab-bar.md). The tab button can specify the layout of the icon and label and connect to a [tab view](tab.md).
See the [tabs documentation](tabs.md) for more details on configuring tabs.
-
-
-
## Usage
@@ -58,10 +53,8 @@ See the [tabs documentation](tabs.md) for more details on configuring tabs.
```
-
-
```html
@@ -108,10 +101,8 @@ See the [tabs documentation](tabs.md) for more details on configuring tabs.
```
-
-
```tsx
@@ -149,10 +140,8 @@ export const TabButtonExample: React.FC = () => (
);
```
-
-
```html
@@ -184,36 +173,35 @@ export const TabButtonExample: React.FC = () => (
```
-
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/tab.md b/versioned_docs/version-v8/api/tab.md
index a669d9193d5..2337ea2b289 100644
--- a/versioned_docs/version-v8/api/tab.md
+++ b/versioned_docs/version-v8/api/tab.md
@@ -1,5 +1,5 @@
---
-title: "ion-tab"
+title: 'ion-tab'
---
import Props from '@ionic-internal/component-api/v8/tab/props.md';
@@ -11,14 +11,16 @@ import Slots from '@ionic-internal/component-api/v8/tab/slots.md';
ion-tab: Ionic Framework Application Component
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
The tab component is a child component of [tabs](tabs.md). Each tab can contain a top level navigation stack for an app or a single view. An app can have many tabs, all with their own independent navigation.
:::note
@@ -27,25 +29,28 @@ Angular, React, and Vue can only use this component when the `ion-tabs` componen
In JavaScript, this component can be used with the `ion-tabs` component configured for either [basic usage](./tabs.md#basic-usage) or [usage with router](./tabs.md#usage-with-router).
:::
-
See the [tabs documentation](tabs.md) for more details on configuring tabs.
-
-
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
-
\ No newline at end of file
+
+
diff --git a/versioned_docs/version-v8/api/tabs.md b/versioned_docs/version-v8/api/tabs.md
index e743a541b80..a3c1ef881ae 100644
--- a/versioned_docs/version-v8/api/tabs.md
+++ b/versioned_docs/version-v8/api/tabs.md
@@ -1,6 +1,7 @@
---
-title: "ion-tabs"
+title: 'ion-tabs'
---
+
import Props from '@ionic-internal/component-api/v8/tabs/props.md';
import Events from '@ionic-internal/component-api/v8/tabs/events.md';
import Methods from '@ionic-internal/component-api/v8/tabs/methods.md';
@@ -10,7 +11,10 @@ import Slots from '@ionic-internal/component-api/v8/tabs/slots.md';
ion-tabs: Tab-Based Component for App Top-Level Navigation
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
@@ -70,19 +74,25 @@ interface TabsCustomEvent extends CustomEvent {
```
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/text.md b/versioned_docs/version-v8/api/text.md
index c716f1b76b9..d9dfbfca1a3 100644
--- a/versioned_docs/version-v8/api/text.md
+++ b/versioned_docs/version-v8/api/text.md
@@ -1,6 +1,7 @@
---
-title: "ion-text"
+title: 'ion-text'
---
+
import Props from '@ionic-internal/component-api/v8/text/props.md';
import Events from '@ionic-internal/component-api/v8/text/events.md';
import Methods from '@ionic-internal/component-api/v8/text/methods.md';
@@ -10,7 +11,10 @@ import Slots from '@ionic-internal/component-api/v8/text/slots.md';
ion-text: Ionic App Component to Style or Change Text Color
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
@@ -25,25 +29,30 @@ import Basic from '@site/static/usage/v8/text/basic/index.md';
-
## Theming
The text component can be customized by changing any of the default [colors](../../docs/theming/colors) Ionic provides.
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/textarea.md b/versioned_docs/version-v8/api/textarea.md
index feed4b04bee..922c4582f8f 100644
--- a/versioned_docs/version-v8/api/textarea.md
+++ b/versioned_docs/version-v8/api/textarea.md
@@ -1,6 +1,7 @@
---
-title: "ion-textarea"
+title: 'ion-textarea'
---
+
import Props from '@ionic-internal/component-api/v8/textarea/props.md';
import Events from '@ionic-internal/component-api/v8/textarea/events.md';
import Methods from '@ionic-internal/component-api/v8/textarea/methods.md';
@@ -10,7 +11,10 @@ import Slots from '@ionic-internal/component-api/v8/textarea/slots.md';
Ionic Textarea Component and CSS Properties for Multi-Line Input
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
@@ -155,19 +159,25 @@ interface TextareaCustomEvent extends CustomEvent {
```
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/thumbnail.md b/versioned_docs/version-v8/api/thumbnail.md
index 094acf35469..3d104f3fbd8 100644
--- a/versioned_docs/version-v8/api/thumbnail.md
+++ b/versioned_docs/version-v8/api/thumbnail.md
@@ -1,5 +1,5 @@
---
-title: "ion-thumbnail"
+title: 'ion-thumbnail'
---
import Props from '@ionic-internal/component-api/v8/thumbnail/props.md';
@@ -11,7 +11,10 @@ import Slots from '@ionic-internal/component-api/v8/thumbnail/slots.md';
ion-thumbnail: Thumbnail App Component for Images or Icons
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
@@ -43,19 +46,25 @@ import CSSProps from '@site/static/usage/v8/thumbnail/theming/css-properties/ind
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/title.md b/versioned_docs/version-v8/api/title.md
index 975c9eaea37..ccd2aef63f9 100644
--- a/versioned_docs/version-v8/api/title.md
+++ b/versioned_docs/version-v8/api/title.md
@@ -1,6 +1,7 @@
---
-title: "ion-title"
+title: 'ion-title'
---
+
import Props from '@ionic-internal/component-api/v8/title/props.md';
import Events from '@ionic-internal/component-api/v8/title/events.md';
import Methods from '@ionic-internal/component-api/v8/title/methods.md';
@@ -10,14 +11,16 @@ import Slots from '@ionic-internal/component-api/v8/title/slots.md';
ion-title: Ionic Framework App Title Component for Toolbars
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
Title is a text component that sets the title for a [toolbar](./toolbar). It can be used to describe the screen or section a user is currently on or the app being used.
## Basic
@@ -44,7 +47,6 @@ import CollapsibleLargeTitle from '@site/static/usage/v8/title/collapsible-large
The [buttons](./buttons.md) component can be used with the [`collapse`](./buttons.md#collapse) property to additionally display in the header as the toolbar is collapsed.
-
import CollapsibleLargeTitleButtons from '@site/static/usage/v8/title/collapsible-large-title/buttons/index.md';
@@ -78,19 +80,25 @@ import CSSCustomProperties from '@site/static/usage/v8/title/theming/css-propert
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/toast.md b/versioned_docs/version-v8/api/toast.md
index c9df2deeaa0..59c56da7bd9 100644
--- a/versioned_docs/version-v8/api/toast.md
+++ b/versioned_docs/version-v8/api/toast.md
@@ -1,6 +1,7 @@
---
-title: "ion-toast"
+title: 'ion-toast'
---
+
import Tabs from '@theme/Tabs';
import TabItem from '@theme/TabItem';
@@ -13,7 +14,10 @@ import Slots from '@ionic-internal/component-api/v8/toast/slots.md';
ion-toast: A Dismissible App Notification Alert Component
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
@@ -204,13 +208,13 @@ const toast = await toastController.create({
While this is not a complete list, here are some guidelines to follow when using toasts.
-* Do not require user interaction to dismiss toasts. For example, having a "Dismiss" button in the toast is fine, but the toast should also automatically dismiss on its own after a timeout period. If you need user interaction for a notification, consider using an [alert](./alert) instead.
+- Do not require user interaction to dismiss toasts. For example, having a "Dismiss" button in the toast is fine, but the toast should also automatically dismiss on its own after a timeout period. If you need user interaction for a notification, consider using an [alert](./alert) instead.
-* For toasts with long messages, consider adjusting the `duration` property to allow users enough time to read the content of the toast.
+- For toasts with long messages, consider adjusting the `duration` property to allow users enough time to read the content of the toast.
-* If adding buttons to a toast, always provide alternative ways of completing the actions associated with each button. This ensures that even if the toast dismisses before a user can read it, they can still complete the actions shown in the toast.
+- If adding buttons to a toast, always provide alternative ways of completing the actions associated with each button. This ensures that even if the toast dismisses before a user can read it, they can still complete the actions shown in the toast.
-* Avoid showing a toast with buttons from inside another overlay such as a [modal](./modal). Modals and other overlays implement [focus trapping](./modal#focus-trapping) that will prevent screen readers from moving focus to the toast to complete the actions. This may be confusing for users since the toast will still be announced by screen readers. This is true even if alternative ways of completing the actions associated with each button are implemented. Consider creating a [live region](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions) within the focus-trapped modal instead of using a toast.
+- Avoid showing a toast with buttons from inside another overlay such as a [modal](./modal). Modals and other overlays implement [focus trapping](./modal#focus-trapping) that will prevent screen readers from moving focus to the toast to complete the actions. This may be confusing for users since the toast will still be announced by screen readers. This is true even if alternative ways of completing the actions associated with each button are implemented. Consider creating a [live region](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Live_Regions) within the focus-trapped modal instead of using a toast.
## Interfaces
@@ -253,19 +257,25 @@ interface ToastOptions {
```
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/toggle.md b/versioned_docs/version-v8/api/toggle.md
index ad2ebe3554e..130472b2753 100644
--- a/versioned_docs/version-v8/api/toggle.md
+++ b/versioned_docs/version-v8/api/toggle.md
@@ -1,6 +1,7 @@
---
-title: "ion-toggle"
+title: 'ion-toggle'
---
+
import Props from '@ionic-internal/component-api/v8/toggle/props.md';
import Events from '@ionic-internal/component-api/v8/toggle/events.md';
import Methods from '@ionic-internal/component-api/v8/toggle/methods.md';
@@ -10,14 +11,16 @@ import Slots from '@ionic-internal/component-api/v8/toggle/slots.md';
ion-toggle: Custom Toggle Button for Ionic Applications
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
Toggles are switches that change the state of a single option. They can be switched on or off by pressing or swiping them. Toggles can also be checked programmatically by setting the `checked` property.
## Basic Usage
@@ -26,7 +29,6 @@ import Basic from '@site/static/usage/v8/toggle/basic/index.md';
-
## On / Off Labels
Toggles can enable on/off labels by setting the `enableOnOffLabels` property. This is important for accessibility as it makes it easier to differentiate between a checked and unchecked toggle.
@@ -35,7 +37,6 @@ import OnOff from '@site/static/usage/v8/toggle/on-off/index.md';
-
## Toggles in a List
Toggles can also be used in a list view by using the [Item](./item) and [List](./list) components.
@@ -44,7 +45,6 @@ import List from '@site/static/usage/v8/toggle/list/index.md';
-
## Label Placement
Developers can use the `labelPlacement` property to control how the label is placed relative to the control.
@@ -129,21 +129,26 @@ interface ToggleCustomEvent extends CustomEvent {
}
```
-
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/api/toolbar.md b/versioned_docs/version-v8/api/toolbar.md
index 1e40388c51b..021c21b6c1f 100644
--- a/versioned_docs/version-v8/api/toolbar.md
+++ b/versioned_docs/version-v8/api/toolbar.md
@@ -1,6 +1,7 @@
---
-title: "ion-toolbar"
+title: 'ion-toolbar'
---
+
import Props from '@ionic-internal/component-api/v8/toolbar/props.md';
import Events from '@ionic-internal/component-api/v8/toolbar/events.md';
import Methods from '@ionic-internal/component-api/v8/toolbar/methods.md';
@@ -10,19 +11,20 @@ import Slots from '@ionic-internal/component-api/v8/toolbar/slots.md';
ion-toolbar: Customize App Menu Toolbar Buttons and Icons
-
+
import EncapsulationPill from '@components/page/api/EncapsulationPill';
-
Toolbars are generally positioned above or below content and provide content and actions for the current screen. When placed within the [content](./content), toolbars will scroll with the content.
Toolbars can contain several different components including titles, buttons, icons, back buttons, menu buttons, searchbars, segments, progress bars, and more.
-
## Basic Usage
It is recommended to put a toolbar inside of a [header](./header) or [footer](./footer) for proper positioning. When a toolbar is placed in a header it will appear fixed at the top of the content. When it is placed in a footer it will appear fixed at the bottom. Fullscreen content will scroll behind a toolbar in a header or footer. A [title](./title) component can be used to display text inside of the toolbar.
@@ -31,7 +33,6 @@ import Basic from '@site/static/usage/v8/toolbar/basic/index.md';
-
## Buttons in Toolbars
Buttons placed in a toolbar should be placed inside of the [buttons](./buttons) component. The buttons component can be positioned inside of the toolbar using a named [slot](#slots). The `"primary"` and `"secondary"` slots behave differently in `ios` and `md` mode.
@@ -42,7 +43,6 @@ import Buttons from '@site/static/usage/v8/toolbar/buttons/index.md';
-
## Searchbars in Toolbars
A [searchbar](./searchbar) can be placed inside of a toolbar to search through the content. It should be the only child component of the toolbar, and will take up the full width and height.
@@ -51,7 +51,6 @@ import Searchbars from '@site/static/usage/v8/toolbar/searchbars/index.md';
-
## Segments in Toolbars
[Segments](./segment) are generally used in toolbars to toggle between two different content views on the same page. They can be placed in a toolbar with other components, such as buttons, but should not be placed alongside a title.
@@ -60,7 +59,6 @@ import Segments from '@site/static/usage/v8/toolbar/segments/index.md';
-
## Progress Bars in Toolbars
A [progress bar](./progress-bar) is used as a loading indicator to show an ongoing process in an app. Progress bars can be placed with any other components inside of a toolbar as they will align with the bottom of the toolbar.
@@ -69,7 +67,6 @@ import ProgressBars from '@site/static/usage/v8/toolbar/progress-bars/index.md';
-
## Theming
### Colors
@@ -84,26 +81,30 @@ import CSSProps from '@site/static/usage/v8/toolbar/theming/css-properties/index
-
## Borders
-In `md` mode, the `` will receive a box-shadow on the bottom, and the `` will receive a box-shadow on the top. In `ios` mode, the `` will receive a border on the bottom, and the `` will receive a border on the top.
-
+In `md` mode, the `` will receive a box-shadow on the bottom, and the `` will receive a box-shadow on the top. In `ios` mode, the `` will receive a border on the bottom, and the `` will receive a border on the top.
## Properties
+
## Events
+
## Methods
+
## CSS Shadow Parts
+
## CSS Custom Properties
+
## Slots
+
diff --git a/versioned_docs/version-v8/reference/glossary.md b/versioned_docs/version-v8/reference/glossary.md
index a79eed60cc4..8d0ec747c20 100644
--- a/versioned_docs/version-v8/reference/glossary.md
+++ b/versioned_docs/version-v8/reference/glossary.md
@@ -17,7 +17,12 @@ title: Glossary
Accessibility
- Accessibility (a11y) is the practice of enabling as many people as possible to use the content, even if people have limited abilities. This include people with disabilities, those using mobile devices, and those with slow network connections. Content should be developed to be as accessible as technology allows.
+
+ Accessibility
+ {' '}
+ (a11y) is the practice of enabling as many people as possible to use the content, even if people have limited
+ abilities. This include people with disabilities, those using mobile devices, and those with slow network
+ connections. Content should be developed to be as accessible as technology allows.
@@ -26,7 +31,12 @@ title: Glossary
Android SDK