Used when the content of the tooltip is the "primary label" for its content, for example, when the trigger content is an icon. The tooltip content will supercede the content of the trigger HTML for screen readers.
Here's what the fields in the configuration record do:
trigger: How do you open this tooltip?triggerHtml: What element do you interact with to open the tooltip?extraButtonAttrs: Adds attributes to the trigger button. Useful for things like focus management, like with Accessible ModalonTrigger: Whatmsgshould I send when the tooltip should open and close? TheBoolrepresents the nextisOpenvalue.isOpen: Is the tooltip open now? (keep track of this in your model somewhere)id: A unique identifier used to associate the trigger with its content
A standard NoRedInk tooltip, which appears around its parent element.
Create versions of me with
tooltip, and customize them with functions likewithPositionandwithThemefrom this model. Like so: