@kwiz/fluentui
Version:
KWIZ common controls for FluentUI
22 lines (21 loc) • 854 B
TypeScript
import React from 'react';
export interface ISectionProps {
main?: boolean;
css?: string[];
style?: React.CSSProperties;
onClick?: (event: React.MouseEvent<HTMLDivElement, MouseEvent>) => void;
rootProps?: React.DetailedHTMLProps<React.HTMLAttributes<HTMLDivElement>, HTMLDivElement>;
title?: string;
left?: boolean;
right?: boolean;
/** set height to match scroll parent's height, and stick to top */
sticky?: boolean;
/** true - will add css position fixed. portal will also wrap it in a portal. */
fullscreen?: boolean | "portal";
/** true - will add css position absolute. */
fullsize?: boolean;
centerSelf?: boolean;
}
export declare const Section: (props: ISectionProps & {
children?: React.ReactNode | undefined;
} & React.RefAttributes<HTMLDivElement>) => React.JSX.Element | null;