mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-20 12:29:55 +08:00
fix(): update to Stencil One 🎉🎊
This commit is contained in:
@ -1,10 +1,9 @@
|
||||
```tsx
|
||||
import React from 'react';
|
||||
import { IonSegment, IonSegmentButton, IonLabel, IonIcon, IonContent } from '@ionic/react';
|
||||
|
||||
import { IonSegment, IonSegmentButton, IonLabel, IonIcon } from '@ionic/react';
|
||||
|
||||
const Example: React.SFC<{}> = () => (
|
||||
<>
|
||||
export const SegmentButtonExample: React.FunctionComponent = () => (
|
||||
<IonContent>
|
||||
{/*-- Segment buttons with text and click listeners --*/}
|
||||
<IonSegment>
|
||||
<IonSegmentButton onIonSelect={() => console.log('Friends segment selected')}>
|
||||
@ -140,8 +139,6 @@ const Example: React.SFC<{}> = () => (
|
||||
<IonLabel>Item Three</IonLabel>
|
||||
</IonSegmentButton>
|
||||
</IonSegment>
|
||||
</>
|
||||
</IonContent>
|
||||
);
|
||||
|
||||
export default Example;
|
||||
```
|
||||
|
Reference in New Issue
Block a user