office-ui-fabric-react
Version:
Reusable React components for building experiences for Office 365.
33 lines (32 loc) • 908 B
TypeScript
import * as React from 'react';
import { Sticky } from './Sticky';
import { IRefObject } from '../../Utilities';
export interface IStickyProps extends React.Props<Sticky> {
/**
* Gets ref to component interface.
*/
componentRef?: IRefObject<IStickyProps>;
/**
* Class name to apply to the sticky element if component is sticky.
*/
stickyClassName?: string;
/**
* color to apply as 'background-color' style for sticky element.
*/
stickyBackgroundColor?: string;
/**
* Region to render sticky component in.
* @default Both
*/
stickyPosition?: StickyPositionType;
/**
* If true, then match scrolling position of placeholder element in Sticky.
* @default true
*/
isScrollSynced?: boolean;
}
export declare enum StickyPositionType {
Both = 0,
Header = 1,
Footer = 2,
}