mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
23 lines
487 B
TypeScript
23 lines
487 B
TypeScript
import * as React from "react";
|
|
import { OffCanvas, OffCanvasBody, OffCanvasMenu } from "react-offcanvas";
|
|
|
|
const offcanvasElement = (
|
|
<OffCanvas
|
|
isMenuOpened
|
|
width={300}
|
|
effect="parallax"
|
|
transitionDuration={250}
|
|
position="right"
|
|
>
|
|
<OffCanvasBody
|
|
className="foo"
|
|
style={{ fontSize: "30px" }}
|
|
>
|
|
<p>body content</p>
|
|
</OffCanvasBody>
|
|
<OffCanvasMenu className="bar">
|
|
<p>menu content</p>
|
|
</OffCanvasMenu>
|
|
</OffCanvas>
|
|
);
|