UNPKG

1.37 kBTypeScriptView Raw
1import * as React from 'react';
2export interface SidebarPanelProps extends Omit<React.HTMLProps<HTMLDivElement>, 'width'> {
3 children: React.ReactNode;
4 /** Indicates whether the panel is positioned statically or sticky to the top. Default is sticky on small screens when the orientation is stack, and static on medium and above screens when the orientation is split. */
5 variant?: 'default' | 'sticky' | 'static';
6 /** Removes the background color. */
7 hasNoBackground?: boolean;
8 /** Sets the panel width at various breakpoints. Default is 250px when the orientation is split. */
9 width?: {
10 default?: 'default' | 'width_25' | 'width_33' | 'width_50' | 'width_66' | 'width_75' | 'width_100';
11 sm?: 'default' | 'width_25' | 'width_33' | 'width_50' | 'width_66' | 'width_75' | 'width_100';
12 md?: 'default' | 'width_25' | 'width_33' | 'width_50' | 'width_66' | 'width_75' | 'width_100';
13 lg?: 'default' | 'width_25' | 'width_33' | 'width_50' | 'width_66' | 'width_75' | 'width_100';
14 xl?: 'default' | 'width_25' | 'width_33' | 'width_50' | 'width_66' | 'width_75' | 'width_100';
15 '2xl'?: 'default' | 'width_25' | 'width_33' | 'width_50' | 'width_66' | 'width_75' | 'width_100';
16 };
17}
18export declare const SidebarPanel: React.FunctionComponent<SidebarPanelProps>;
19//# sourceMappingURL=SidebarPanel.d.ts.map
\No newline at end of file