Headline for teaching Bubble
Solution
The headline attribute in TeachingBubble component needs a string value.
As a workaround,we could add html element in the content part.
Test code:
{teachingBubbleVisible && (
<TeachingBubble
target="#targetButton"
primaryButtonProps={examplePrimaryButtonProps}
secondaryButtonProps={exampleSecondaryButtonProps}
onDismiss={toggleTeachingBubbleVisible}
>
<h1>Discover what’s trending around youw</h1>
Lorem ipsum dolor sit amet, consectetur adipisicing elit. Facere, nulla, ipsum? Molestiae quis aliquam magni
harum non?
</TeachingBubble>
)}
OTHER TIPS
As per the documentation at ITeachingBubbleProps interface - headline,
headline
property expects string
value. So you have to pass the string value to headline property of TeachingBubble
element.
If want to apply additional styling to headline then you can use:
Licensed under: CC-BY-SA with attribution
Not affiliated with sharepoint.stackexchange