본문으로 건너뛰기

Interactive

Tooltips

Tooltips are text that appear on hover. They serve two purposes:

  1. Add secondary context.
    • You want to add a description to an object. It's not so important that everyone needs it, but those who want extra information can access it.
  2. Tidy.
    • Your diagram is getting messy. Instead of adding more text, you can tuck some into tooltips.

Try it out, hover over x and y. Notice that they have an icon indicating that they have a tooltip.

xTotal abstinence is easier than perfect moderationyGee, I feel kind of LIGHT in the head now, knowing I can't make my satellite dish PAYMENTS! Total abstinence is easier than perfect moderation Gee, I feel kind of LIGHT in the head now, knowing I can't make my satellite dish PAYMENTS!

When you export to a static format like PNG, D2 will

  1. Change all the icons to be numbered.
  2. Add an appendix, where each line corresponds to the number.
d2 tooltip
주의

Tooltips are implemented with HTML title tags, which have basic support for text formatting. Markdown won't be rendered as expected in tooltips.

Links are like tooltips, except you click to go to an external link.

정보

When the link contains the # character as part of a URI fragment, e.g., https://example.com/page#fragment, remember that the fragment will be treated as a comment if unquoted and unescaped.

Try clicking on each.

I'm a MacAnd I'm a PC gazoontite