mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-09 08:09:32 +08:00
docs(stencil): add stencil usage to components (#21261)
This commit is contained in:
@ -39,6 +39,32 @@ The `ion-infinite-scroll-content` component is not supported in React.
|
||||
```
|
||||
|
||||
|
||||
### Stencil
|
||||
|
||||
```tsx
|
||||
import { Component, h } from '@stencil/core';
|
||||
|
||||
@Component({
|
||||
tag: 'infinite-scroll-content-example',
|
||||
styleUrl: 'infinite-scroll-content-example.css'
|
||||
})
|
||||
export class InfiniteScrollContentExample {
|
||||
render() {
|
||||
return [
|
||||
<ion-content>
|
||||
<ion-infinite-scroll>
|
||||
<ion-infinite-scroll-content
|
||||
loadingSpinner="bubbles"
|
||||
loadingText="Loading more data...">
|
||||
</ion-infinite-scroll-content>
|
||||
</ion-infinite-scroll>
|
||||
</ion-content>
|
||||
];
|
||||
}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
### Vue
|
||||
|
||||
```html
|
||||
|
||||
22
core/src/components/infinite-scroll-content/usage/stencil.md
Normal file
22
core/src/components/infinite-scroll-content/usage/stencil.md
Normal file
@ -0,0 +1,22 @@
|
||||
```tsx
|
||||
import { Component, h } from '@stencil/core';
|
||||
|
||||
@Component({
|
||||
tag: 'infinite-scroll-content-example',
|
||||
styleUrl: 'infinite-scroll-content-example.css'
|
||||
})
|
||||
export class InfiniteScrollContentExample {
|
||||
render() {
|
||||
return [
|
||||
<ion-content>
|
||||
<ion-infinite-scroll>
|
||||
<ion-infinite-scroll-content
|
||||
loadingSpinner="bubbles"
|
||||
loadingText="Loading more data...">
|
||||
</ion-infinite-scroll-content>
|
||||
</ion-infinite-scroll>
|
||||
</ion-content>
|
||||
];
|
||||
}
|
||||
}
|
||||
```
|
||||
Reference in New Issue
Block a user