UNPKG

@uifabric/experiments

Version:

Experimental React components for building experiences for Office 365.

32 lines (31 loc) 1.71 kB
import { IRefObject } from '../../Utilities'; import { IComponent, IComponentStyles, IHTMLElementSlot, ISlotProp, IStyleableComponentProps } from '../../Foundation'; import { ITextSlot } from 'office-ui-fabric-react'; import { IIconSlot } from '../../utilities/factoryComponents.types'; export declare type ICollapsibleSectionTitleComponent = IComponent<ICollapsibleSectionTitleProps, ICollapsibleSectionTitleTokens, ICollapsibleSectionTitleStyles>; export declare type ICollapsibleSectionTitleTokenReturnType = ReturnType<Extract<ICollapsibleSectionTitleComponent['tokens'], Function>>; export declare type ICollapsibleSectionTitleStylesReturnType = ReturnType<Extract<ICollapsibleSectionTitleComponent['styles'], Function>>; export declare type ICollapsibleSectionTitleSlot = ISlotProp<ICollapsibleSectionTitleProps, string>; export interface ICollapsibleSectionTitleSlots { root?: IHTMLElementSlot<'button'>; chevron?: IIconSlot; text?: ITextSlot; } export interface ICollapsibleSectionTitleProps extends ICollapsibleSectionTitleSlots, IStyleableComponentProps<ICollapsibleSectionTitleProps, ICollapsibleSectionTitleTokens, ICollapsibleSectionTitleStyles>, React.ButtonHTMLAttributes<HTMLButtonElement> { focusElementRef?: IRefObject<HTMLButtonElement>; /** * Collapsed state of body associated with this component. */ collapsed?: boolean; /** * Disable chevron appearance. */ chevronDisabled?: boolean; /** * Indentation of title. */ indent?: number; } export interface ICollapsibleSectionTitleTokens { } export declare type ICollapsibleSectionTitleStyles = IComponentStyles<ICollapsibleSectionTitleSlots>;