office-ui-fabric-react
Version:
Reusable React components for building experiences for Microsoft 365.
60 lines (59 loc) • 1.81 kB
TypeScript
import { ITheme, IStyle } from '../../Styling';
import { IStyleFunctionOrObject } from '../../Utilities';
/**
* {@docCategory VerticalDivider}
* Props for the Vertical Divider
*/
export interface IVerticalDividerProps {
/**
* @deprecated Use styles instead.
* Optional function to generate the class names for the divider for custom styling
*/
getClassNames?: (theme: ITheme) => IVerticalDividerClassNames;
/**
* The theme that should be used to render the vertical divider.
*/
theme?: ITheme;
/**
* Optional override stylings that will get merged with the dividers styles.
*/
styles?: IStyleFunctionOrObject<IVerticalDividerPropsStyles, IVerticalDividerStyles>;
/**
* className that will be placed on the divider wrapper div
*/
className?: string;
}
/**
* {@docCategory VerticalDivider}
* Props that will get passed to the styling function to style the Vertical Divider
*/
export declare type IVerticalDividerPropsStyles = Pick<IVerticalDividerProps, 'theme' | 'getClassNames' | 'className'>;
/**
* {@docCategory VerticalDivider}
* Style interface that defines the different areas that styles can be customized on the Vertical Divider
*/
export interface IVerticalDividerStyles {
/**
* Styling for the div that wraps the actual divider
*/
wrapper: IStyle;
/**
* Styling for the divider.
*/
divider: IStyle;
}
/**
* {@docCategory VerticalDivider}
* @deprecated
* Deprecated class names, used to be used to provider customizations, use IVerticalDividerStyles instead
*/
export interface IVerticalDividerClassNames {
/**
* Styling for the div that wraps the actual divider
*/
wrapper: string;
/**
* Styling for the divider.
*/
divider: string;
}