UNPKG

office-ui-fabric-react

Version:

Reusable React components for building experiences for Office 365.

64 lines (63 loc) 2.1 kB
import * as React from 'react'; import { TeachingBubble } from './TeachingBubble'; import { TeachingBubbleContent } from './TeachingBubbleContent'; import { IImageProps } from '../../Image'; import { IButtonProps } from '../../Button'; import { IAccessiblePopupProps } from '../../common/IAccessiblePopupProps'; import { ICalloutProps } from '../../Callout'; export interface ITeachingBubble { } /** * TeachingBubble component props. */ export interface ITeachingBubbleProps extends React.Props<TeachingBubble | TeachingBubbleContent>, IAccessiblePopupProps { /** * Optional callback to access the ISlider interface. Use this instead of ref for accessing * the public methods and properties of the component. */ componentRef?: (component: ITeachingBubble) => void; /** * Properties to pass through for Callout, reference detail properties in ICalloutProps */ calloutProps?: ICalloutProps; /** * A headline for the Teaching Bubble. */ headline?: string; /** * A variation with smaller bold headline and no margins. */ hasCondensedHeadline?: boolean; /** * Does the TeachingBubble have a close button in the top right corner? */ hasCloseIcon?: boolean; /** * An Image for the Teaching Bubble. */ illustrationImage?: IImageProps; /** * The Primary interaction button */ primaryButtonProps?: IButtonProps; /** * The Secondary interaction button */ secondaryButtonProps?: IButtonProps; /** * Element to anchor the TeachingBubble to. */ targetElement?: HTMLElement; /** * Callback when the TeachingBubble tries to close. */ onDismiss?: (ev?: any) => void; /** * Whether or not the Teaching Bubble is wide, with image on the left side. */ isWide?: boolean; /** * A variation with smaller bold headline and margins to the body (hasCondensedHeadline takes precedence if it is also set to true). */ hasSmallHeadline?: boolean; }