Reticle@etched/reticle 0.0.0

Link

Text link. Routing belongs to the app: pass href, or a router link through render. Native <a> attributes and ref pass through.

Kumo source

Thermal results are in the run report.

import { Text } from "@etched/reticle/text";
import { Link } from "@etched/reticle/link";

export function Preview() {
  return (
    <Text>
      Thermal results are in the <Link href="#link">run report</Link>.
    </Text>
  );
}

Installation

import { Link, LinkExternalIcon } from "@etched/reticle/link";

Examples

Variants

import { Link, type LinkVariant } from "@etched/reticle/link";

const variants: LinkVariant[] = ["inline", "current", "plain"];

export function Variants() {
  return (
    <div className="row">
      {variants.map((v) => (
        <Link key={v} href="#link" variant={v}>
          {v} link
        </Link>
      ))}
    </div>
  );
}

In text

current takes the color of the text around it, for example in an error.

Thermal results are in the run report. Ask the bench owner before you start a retest.

Upload failed. See the log for details.

import { Text } from "@etched/reticle/text";
import { Link } from "@etched/reticle/link";

export function InText() {
  return (
    <div className="grid">
      <Text>
        Thermal results are in the <Link href="#link">run report</Link>. Ask the bench owner before you start a retest.
      </Text>
      <Text variant="error">
        Upload failed. <Link href="#link" variant="current">See the log</Link> for details.
      </Text>
    </div>
  );
}

API reference