mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
13 lines
379 B
TypeScript
13 lines
379 B
TypeScript
import * as React from 'react';
|
|
import Sidebar, { SidebarStyles } from 'react-sidebar';
|
|
|
|
const sidebar = <ul><li>Item 1</li><li>Item 2</li></ul>;
|
|
|
|
const sidebarStyle: SidebarStyles = {
|
|
content: { width: "300px" }
|
|
};
|
|
|
|
const sidebar1 = <Sidebar docked={true} open={true} sidebar={sidebar} styles={sidebarStyle}>
|
|
<h1>Content</h1>
|
|
</Sidebar>;
|