ariaDescribedBy string
Defines the element id referencing the element containing the description for the TeachingBubble.
ariaLabelledBy string
Defines the element id referencing the element containing label text for TeachingBubble.
calloutProps ICalloutProps
Properties to pass through for Callout, reference detail properties in ICalloutProps
componentRef IRefObject<ITeachingBubble>
Optional callback to access the ITeachingBubble interface. Use this instead of ref for accessing the public methods and properties of the component.
focusTrapZoneProps IFocusTrapZoneProps
Properties to pass through for FocusTrapZone, reference detail properties in IFocusTrapZoneProps
footerContent string | JSX.Element
Text that will be rendered in the footer of the TeachingBubble. May be rendered alongside primary and secondary buttons.
hasCloseButton boolean
Whether the TeachingBubble renders close button in the top right corner.
hasCloseIcon boolean
hasCondensedHeadline boolean
A variation with smaller bold headline and no margins.
hasSmallHeadline boolean
A variation with smaller bold headline and margins to the body. (hasCondensedHeadline
takes precedence if it is also set to true.)
headline string
A headline for the Teaching Bubble.
illustrationImage IImageProps
An Image for the TeachingBubble.
isWide boolean
Whether or not the TeachingBubble is wide, with image on the left side.
onDismiss (ev?: any) => void
Callback when the TeachingBubble tries to close.
primaryButtonProps IButtonProps
The Primary interaction button
secondaryButtonProps IButtonProps
The Secondary interaction button
styles IStyleFunctionOrObject<ITeachingBubbleStyleProps, ITeachingBubbleStyles>
Call to provide customized styling that will layer on top of the variant rules.
target Target
Element, MouseEvent, Point, or querySelector string that the TeachingBubble should anchor to.
targetElement HTMLElement
theme ITheme
Theme provided by High-Order Component.