Installation
npm install --save @types/react-sidebar
Summary
This package contains type definitions for react-sidebar (https://github.com/balloob/react-sidebar#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-sidebar.
index.d.ts
import { Component, ReactNode } from "react";
export interface SidebarProps {
children?: ReactNode;
contentClassName?: string | undefined;
defaultSidebarWidth?: number | undefined;
docked?: boolean | undefined;
dragToggleDistance?: number | undefined;
onSetOpen?(open: boolean): void;
open?: boolean | undefined;
overlayClassName?: string | undefined;
pullRight?: boolean | undefined;
rootClassName?: string | undefined;
shadow?: boolean | undefined;
sidebar?: React.ReactNode | undefined;
sidebarClassName?: string | undefined;
styles?: SidebarStyles | undefined;
transitions?: boolean | undefined;
touch?: boolean | undefined;
touchHandleWidth?: number | undefined;
rootId?: string | undefined;
sidebarId?: string | undefined;
contentId?: string | undefined;
overlayId?: string | undefined;
}
export interface SidebarStyles {
content?: Partial<CSSStyleDeclaration> | undefined;
dragHandle?: Partial<CSSStyleDeclaration> | undefined;
overlay?: Partial<CSSStyleDeclaration> | undefined;
root?: Partial<CSSStyleDeclaration> | undefined;
sidebar?: Partial<CSSStyleDeclaration> | undefined;
}
export default class Sidebar extends Component<SidebarProps> {}
Additional Details
- Last updated: Tue, 07 Nov 2023 09:09:39 GMT
- Dependencies: @types/react
Credits
These definitions were written by Jeroen Vervaeke.