Closed neodigm closed 1 year ago
Visually reference Toast.
data-n55-tulip='{"msg":"hello", "template":"js-tulip__hello--id", "theme":"RANDOM", "size":"medium","position":"top", "icon":{"char":"phone", "theme":"primary"}}'
This basic feature is turned on by default in v2.6. While the Tulip component can now be used by anyone on the alpha release candidate, it is far from complete. I do anticipate breaking changes.
This enhancement is complete in v2.6.
The Tulip component (Tooltip) will display a temporal floating text tip in the proximity of an element when hovered (not on mobile) or when actuated via JavaScript (works on mobile). This behavior is triggered by the existence of the data-n55-tulip attribute. This attribute can contain simple text, like "hello world", or for advanced configuration a JSON string. Up to two lines of text are allowed, delimited by the pipe character "|". When opened declaratively the tulip is dismissed upon click, mouse exit, scroll, resize, or reorientate.
Depends on the Pop Tart component.