AutoLink
Replacement for the <a> element that automatically links the URL if it's valid, and only shows text if it's invalid.
Props
hrefstring — a string that could be a URLtextstring, default value fromhref— text shown for the link
Slots
default— alternative to thetextproperty
Example
- URL without text: https://coli-conc.gbv.de
- URL with text (via prop): coli-conc
- URL with text (via slot): coli-conc
- Not a URL (show as text): some text