primereact
Version:
PrimeReact is an open source UI library for React featuring a rich set of 90+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with Prime
57 lines (54 loc) • 1.69 kB
TypeScript
/**
*
* ScrollPanel is a cross browser, lightweight and skinnable alternative to native browser scrollbar.
*
* [Live Demo](https://www.primereact.org/scrollpanel/)
*
* @module scrollpanel
*
*/
import * as React from 'react';
/**
* Defines valid properties in ScrollPanel component. In addition to these, all properties of HTMLDivElement can be used in this component.
* @group Properties
*/
export interface ScrollPanelProps extends Omit<React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>, 'ref'> {
/**
* Used to get the child elements of the component.
* @readonly
*/
children?: React.ReactNode | undefined;
}
/**
* **PrimeReact - ScrollPanel**
*
* _ScrollPanel is a cross browser, lightweight and skinnable alternative to native browser scrollbar._
*
* [Live Demo](https://www.primereact.org/scrollpanel/)
* --- ---
* 
*
* @group Component
*/
export declare class ScrollPanel extends React.Component<ScrollPanelProps, any> {
/**
* Used to get container element.
* @return {HTMLDivElement} Container element
*/
public getElement(): HTMLDivElement;
/**
* Used to get content of the scrollpanel.
* @return {HTMLDivElement} Content element
*/
public getContent(): HTMLDivElement;
/**
* Used to get horizontal scrollbar of the panel.
* @return {HTMLDivElement} Horizontal bar element
*/
public getXBar(): HTMLDivElement;
/**
* Used to get vertical scrollbar of the panel.
* @return {HTMLDivElement} Vertical bar element
*/
public getYBar(): HTMLDivElement;
}