mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
docs(react): update component usage docs (#17615)
This commit is contained in:
24
core/src/components/split-pane/usage/react.md
Normal file
24
core/src/components/split-pane/usage/react.md
Normal file
@@ -0,0 +1,24 @@
|
||||
```tsx
|
||||
import React from 'react';
|
||||
|
||||
import { IonSplitPane, IonMenu, IonHeader, IonToolbar, IonTitle, IonRouterOutlet } from '@ionic/react';
|
||||
|
||||
const Example: React.SFC<{}> = () => (
|
||||
|
||||
<IonSplitPane contentId="menuContent">
|
||||
{/*-- our side menu --*/}
|
||||
<IonMenu contentId="menuContent">
|
||||
<IonHeader>
|
||||
<IonToolbar>
|
||||
<IonTitle>Menu</IonTitle>
|
||||
</IonToolbar>
|
||||
</IonHeader>
|
||||
</IonMenu>
|
||||
|
||||
{/*-- the main content --*/}
|
||||
<IonRouterOutlet></IonRouterOutlet>
|
||||
</IonSplitPane>
|
||||
);
|
||||
|
||||
export default Example;
|
||||
```
|
||||
Reference in New Issue
Block a user