@clayui/shared
Version:
ClayShared component
31 lines (30 loc) • 886 B
TypeScript
/**
* SPDX-FileCopyrightText: © 2023 Liferay, Inc. <https://liferay.com>
* SPDX-License-Identifier: BSD-3-Clause
*/
import React from 'react';
export declare type Position = 'left' | 'right';
declare type Props = {
/**
* Callback is called every time the panel width changes (Controlled).
*/
onPanelWidthChange: (width: number) => void;
/**
* Property to set the panel width (controlled).
*/
panelWidth?: number;
/**
* The maximum width for the panel.
*/
panelWidthMax: number;
/**
* The minimum width for the panel.
*/
panelWidthMin: number;
/**
* The side of the screen where the panel is located.
*/
position: Position;
};
export declare function PanelResizer({ onPanelWidthChange, panelWidth, panelWidthMax, panelWidthMin, position, ...otherProps }: Props): React.JSX.Element;
export {};