Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions docs/react/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ const DashboardPage: React.FC<RouteComponentProps> = ({ match }) => {

The `IonPage` component wraps each view in an Ionic React app and allows page transitions and stack navigation to work properly. Each view that is navigated to using the router must include an `IonPage` component.

`IonPage` is also required for proper styling. It provides a flex container that ensures page content, such as `IonContent`, is properly sized and does not overlap other UI elements like `IonTabBar`.

```tsx
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';
import React from 'react';
Expand Down
2 changes: 2 additions & 0 deletions docs/vue/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ Nothing should be provided inside of `IonRouterOutlet` when setting it up in you

The `IonPage` component wraps each view in an Ionic Vue app and allows page transitions and stack navigation to work properly. Each view that is navigated to using the router must include an `IonPage` component.

`IonPage` is also required for proper styling. It provides a flex container that ensures page content, such as `IonContent`, is properly sized and does not overlap other UI elements like `IonTabBar`.

```vue
<template>
<ion-page>
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v6/tabs/router/react/home_page_tsx.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```tsx
import React from 'react';
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';

const HomePage = () => (
<>
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Listen now</IonTitle>
Expand All @@ -21,7 +21,7 @@ const HomePage = () => (
Listen now content
</div>
</IonContent>
</>
</IonPage>
);

export default HomePage;
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v6/tabs/router/react/library_page_tsx.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```tsx
import React from 'react';
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';

const LibraryPage = () => (
<>
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Library</IonTitle>
Expand All @@ -21,7 +21,7 @@ const LibraryPage = () => (
Library content
</div>
</IonContent>
</>
</IonPage>
);

export default LibraryPage;
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v6/tabs/router/react/radio_page_tsx.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```tsx
import React from 'react';
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';

const RadioPage = () => (
<>
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Radio</IonTitle>
Expand All @@ -21,7 +21,7 @@ const RadioPage = () => (
Radio content
</div>
</IonContent>
</>
</IonPage>
);

export default RadioPage;
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v6/tabs/router/react/search_page_tsx.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```tsx
import React from 'react';
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';

const SearchPage = () => (
<>
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Search</IonTitle>
Expand All @@ -21,7 +21,7 @@ const SearchPage = () => (
Search content
</div>
</IonContent>
</>
</IonPage>
);

export default SearchPage;
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v7/tabs/router/react/home_page_tsx.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```tsx
import React from 'react';
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';

const HomePage = () => (
<>
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Listen now</IonTitle>
Expand All @@ -21,7 +21,7 @@ const HomePage = () => (
Listen now content
</div>
</IonContent>
</>
</IonPage>
);

export default HomePage;
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v7/tabs/router/react/library_page_tsx.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```tsx
import React from 'react';
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';

const LibraryPage = () => (
<>
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Library</IonTitle>
Expand All @@ -21,7 +21,7 @@ const LibraryPage = () => (
Library content
</div>
</IonContent>
</>
</IonPage>
);

export default LibraryPage;
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v7/tabs/router/react/radio_page_tsx.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```tsx
import React from 'react';
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';

const RadioPage = () => (
<>
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Radio</IonTitle>
Expand All @@ -21,7 +21,7 @@ const RadioPage = () => (
Radio content
</div>
</IonContent>
</>
</IonPage>
);

export default RadioPage;
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v7/tabs/router/react/search_page_tsx.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```tsx
import React from 'react';
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';

const SearchPage = () => (
<>
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Search</IonTitle>
Expand All @@ -21,7 +21,7 @@ const SearchPage = () => (
Search content
</div>
</IonContent>
</>
</IonPage>
);

export default SearchPage;
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v8/tabs/router/react/home_page_tsx.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```tsx
import React from 'react';
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';

const HomePage = () => (
<>
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Listen now</IonTitle>
Expand All @@ -21,7 +21,7 @@ const HomePage = () => (
Listen now content
</div>
</IonContent>
</>
</IonPage>
);

export default HomePage;
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v8/tabs/router/react/library_page_tsx.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```tsx
import React from 'react';
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';

const LibraryPage = () => (
<>
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Library</IonTitle>
Expand All @@ -21,7 +21,7 @@ const LibraryPage = () => (
Library content
</div>
</IonContent>
</>
</IonPage>
);

export default LibraryPage;
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v8/tabs/router/react/radio_page_tsx.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```tsx
import React from 'react';
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';

const RadioPage = () => (
<>
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Radio</IonTitle>
Expand All @@ -21,7 +21,7 @@ const RadioPage = () => (
Radio content
</div>
</IonContent>
</>
</IonPage>
);

export default RadioPage;
Expand Down
6 changes: 3 additions & 3 deletions static/usage/v8/tabs/router/react/search_page_tsx.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
```tsx
import React from 'react';
import { IonContent, IonHeader, IonTitle, IonToolbar } from '@ionic/react';
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';

const SearchPage = () => (
<>
<IonPage>
<IonHeader>
<IonToolbar>
<IonTitle>Search</IonTitle>
Expand All @@ -21,7 +21,7 @@ const SearchPage = () => (
Search content
</div>
</IonContent>
</>
</IonPage>
);

export default SearchPage;
Expand Down
2 changes: 2 additions & 0 deletions versioned_docs/version-v6/react/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ const DashboardPage: React.FC<RouteComponentProps> = ({ match }) => {

The `IonPage` component wraps each view in an Ionic React app and allows page transitions and stack navigation to work properly. Each view that is navigated to using the router must include an `IonPage` component.

`IonPage` is also required for proper styling. It provides a flex container that ensures page content, such as `IonContent`, is properly sized and does not overlap other UI elements like `IonTabBar`.

```tsx
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';
import React from 'react';
Expand Down
2 changes: 2 additions & 0 deletions versioned_docs/version-v6/vue/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -552,6 +552,8 @@ Nothing should be provided inside of `IonRouterOutlet` when setting it up in you

The `IonPage` component wraps each view in an Ionic Vue app and allows page transitions and stack navigation to work properly. Each view that is navigated to using the router must include an `IonPage` component.

`IonPage` is also required for proper styling. It provides a flex container that ensures page content, such as `IonContent`, is properly sized and does not overlap other UI elements like `IonTabBar`.

```html
<template>
<ion-page>
Expand Down
2 changes: 2 additions & 0 deletions versioned_docs/version-v7/react/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,8 @@ const DashboardPage: React.FC<RouteComponentProps> = ({ match }) => {

The `IonPage` component wraps each view in an Ionic React app and allows page transitions and stack navigation to work properly. Each view that is navigated to using the router must include an `IonPage` component.

`IonPage` is also required for proper styling. It provides a flex container that ensures page content, such as `IonContent`, is properly sized and does not overlap other UI elements like `IonTabBar`.

```tsx
import { IonContent, IonHeader, IonPage, IonTitle, IonToolbar } from '@ionic/react';
import React from 'react';
Expand Down
2 changes: 2 additions & 0 deletions versioned_docs/version-v7/vue/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -494,6 +494,8 @@ Nothing should be provided inside of `IonRouterOutlet` when setting it up in you

The `IonPage` component wraps each view in an Ionic Vue app and allows page transitions and stack navigation to work properly. Each view that is navigated to using the router must include an `IonPage` component.

`IonPage` is also required for proper styling. It provides a flex container that ensures page content, such as `IonContent`, is properly sized and does not overlap other UI elements like `IonTabBar`.

```vue
<template>
<ion-page>
Expand Down