mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
chore(): sync GitHub Actions with main
This commit is contained in:
@ -2,10 +2,6 @@
|
||||
|
||||
The `ion-infinite-scroll-content` component is the default child used by the `ion-infinite-scroll`. It displays an infinite scroll spinner that looks best based on the platform and changes the look depending on the infinite scroll's state. The default spinner can be changed and text can be added by setting the `loadingSpinner` and `loadingText` properties.
|
||||
|
||||
## React
|
||||
|
||||
The `ion-infinite-scroll-content` component is not supported in React.
|
||||
|
||||
<!-- Auto Generated Below -->
|
||||
|
||||
|
||||
@ -39,6 +35,25 @@ The `ion-infinite-scroll-content` component is not supported in React.
|
||||
```
|
||||
|
||||
|
||||
### React
|
||||
|
||||
```tsx
|
||||
import React from 'react';
|
||||
import { IonContent, IonInfiniteScroll, IonInfiniteScrollContent } from '@ionic/react';
|
||||
|
||||
export const InfiniteScrollExample: React.FC = () => (
|
||||
<IonContent>
|
||||
<IonInfiniteScroll>
|
||||
<IonInfiniteScrollContent
|
||||
loadingSpinner="bubbles"
|
||||
loadingText="Loading more data...">
|
||||
</IonInfiniteScrollContent>
|
||||
</IonInfiniteScroll>
|
||||
</IonContent>
|
||||
);
|
||||
```
|
||||
|
||||
|
||||
### Stencil
|
||||
|
||||
```tsx
|
||||
|
||||
15
core/src/components/infinite-scroll-content/usage/react.md
Normal file
15
core/src/components/infinite-scroll-content/usage/react.md
Normal file
@ -0,0 +1,15 @@
|
||||
```tsx
|
||||
import React from 'react';
|
||||
import { IonContent, IonInfiniteScroll, IonInfiniteScrollContent } from '@ionic/react';
|
||||
|
||||
export const InfiniteScrollExample: React.FC = () => (
|
||||
<IonContent>
|
||||
<IonInfiniteScroll>
|
||||
<IonInfiniteScrollContent
|
||||
loadingSpinner="bubbles"
|
||||
loadingText="Loading more data...">
|
||||
</IonInfiniteScrollContent>
|
||||
</IonInfiniteScroll>
|
||||
</IonContent>
|
||||
);
|
||||
```
|
||||
Reference in New Issue
Block a user