Link
A text link with the system’s styles—an <a class="ts link" href>; an action that looks like a link is a <button type="button" class="ts link">. It has variants and a disabled state; external links carry target="_blank" and rel="noopener noreferrer".
Navigation · TaishoDS Core, in plain HTML.
Examples
One working example per case. Each example is the HTML of its preview—copy it as is, and with Core’s CSS and JS loaded, it looks and works the same.
Internal and external links
Read the docs or check out the repository.
Link that runs an action
We couldn’t process the payment.
Footer or menu link
Class reference
Every value of each modifier, with its HTML ready to copy.
sin href
When to use
- Navigating to another page or to another point in the content.
- The link sits inside text and needs to read as text.
- You’re pointing outside the site.
target="_blank"withrel="noopener noreferrer"opens it in a new tab without handing control to that page.
When not to use
- It’s an action that changes something, not a destination →
button. - It’s a link that needs to look like a button → an
<a class="ts button …">(seebutton).
Do
- Make the text say where it goes: “read the theming guide,” not “click here.”
- Mark external links with
target="_blank"andrel="noopener noreferrer"so they don’t catch people off guard.
Don’t
- Don’t use a link to trigger destructive actions.
- Don’t leave links that can’t be told apart from plain text.
Related
TaishoDS Core
Doesn’t need JavaScript—it’s markup and CSS.
A native <a>, or a native <button> with the same look when it’s an action.
From the CDN, without a build, load taisho.link.css along with taisho.base.css. That file is all you need.
For how Core works in general, see Behavior.
Accessibility
- A link that opens in a new tab (
target="_blank") should carryrel="noopener noreferrer"for security. - A link that navigates is an
<a href>. An<a>withouthrefisn’t a link and isn’t in the focus order. An action that looks like a link is a<button type="button" class="ts link">: same look, it enters the focus order, and Enter and Space activate it.
Verification
What was actually tested. Anything that wasn’t tested says so—we’d rather say “not verified” than claim too much.
- axe WCAG 2.2 A + AA in a real browser, in light and dark mode, before every release.
- keyboard Adds no keys of its own—it uses the browser’s native behavior.
- screen reader Not verified with a screen reader. Test it in your own combination of components, not just here, where each one appears alone and on its happy path.