/* Copyright 2023 New Vector Ltd. SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial Please see LICENSE files in the repository root for full details. */ import React, { forwardRef, type PropsWithChildren } from "react"; import styles from "./Link.module.css"; import classNames from "classnames"; import type { Size } from "../../utils/size"; type LinkProps = { /** * The CSS class name. */ className?: string; /** * The color variant of the link. * @default "primary" */ kind?: "primary" | "critical"; /** * The t-shirt size of the link. * @default "md" */ size?: Size & ("sm" | "md"); } & Omit, "rel" | "size">; /** * A link component. */ export const Link = forwardRef>( function Link( { children, className, kind = "primary", size = "md", ...props }, ref, ) { return ( {children} ); }, );