Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 491 Bytes

navigation-instructions.md

File metadata and controls

18 lines (12 loc) · 491 Bytes

Common Instructions

ExternalLink

Opens a link in a browser (on mobile) or on a new tab (in browser) when clicked/tapped.

text("Terms of Service", ExternalLink("https://my.site/terms.txt"))
text("Terms of Service", externalLink("https://my.site/terms.txt"))

You might want to create a helper function similar to this:

fun siteLink(href : String) = ExternalLink("https://my.site/${href.removePrefix("/")}")

text("Terms of Service", siteLink("terms.txt"))