When to use
Section titled “When to use”Link takes the user to another page, section or address: references in text, “Show all”, documentation and external sources.
When not to use
Section titled “When not to use”- To run an action: Saving, deleting or opening something is done with a Button.
- When only an icon shows: Use an IconButton for actions; a link needs text.
- To make a link look like a button: Give Button
render={<a href="..." />}.
Anatomy
Section titled “Anatomy”import { Link, Provider } from '@bigbang/ui';
export default function External() { return ( <Provider locale="en-GB"> <div className="flex flex-col items-start gap-md"> <Link href="https://example.com" external> Documentation </Link> <Link href="https://example.com" external variant="standalone"> Documentation </Link> </div> </Provider> );}- Text: the name of the link, in
color-text-link. - Underline: always on an inline link, on hover for a standalone one.
- External-link icon: only with
external; decorative. - Hidden note: “(yeni sekmede açılır)” or “(opens in a new tab)”; screen readers read it at the end of the link name.
Behaviour
Section titled “Behaviour”- Link renders a native
<a href>; Enter and a click go to the destination. hrefis checked: relative paths andhttps:,http:,mailto:,tel:are kept. Schemes such asjavascript:,data:andvbscript:are removed and the link renders without a destination.renderrenders the router’s link component; the styles and the href check still apply.externalopens the new tab withtarget="_blank"andrel="noopener noreferrer".
Guidelines
Section titled “Guidelines”- The link text says where it goes: “Terms of use”. Do not write “click here” or “more”.
- Use an inline link inside text; use a standalone link at the end of cards and lists.
- Open a new tab only for external sources; do not interrupt the user’s task.
- Do not give the same text different destinations on one page.
Content
Section titled “Content”- The link text is a short noun phrase; do not make a whole sentence the link.
- Do not show the raw address as the text; give a readable name.
| Turkish | English |
|---|---|
| Tümünü göster | Show all |
| Kullanım koşulları | Terms of use |
| yeni sekmede açılır | opens in a new tab |