/*! * Copyright (c) 2022-present, Okta, Inc. and/or its affiliates. All rights reserved. * The Okta software accompanied by this notice is provided pursuant to the Apache License, Version 2.0 (the "License.") * * You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0. * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * * See the License for the specific language governing permissions and limitations under the License. */ import { LinkProps as MuiLinkProps } from "@mui/material"; import { ReactElement, ReactNode, RefObject } from "react"; import type { HtmlProps } from "./HtmlProps.js"; import { FocusHandle } from "./inputUtils.js"; export declare const linkVariantValues: readonly ["default", "monochrome"]; export type LinkProps = { /** * The content within the Link */ children: ReactNode; /** * The Link destination */ href: string; /** * An optional Icon component at the start of the Link */ icon?: ReactElement; /** * Ref attached to the underlying element. */ linkRef?: RefObject; /** * Called when the link is clicked. */ onClick?: MuiLinkProps["onClick"]; /** * The rel attribute defines the relationship between a linked resource and the current document * * @see https://developer.mozilla.org/en-US/docs/Web/HTML/Attributes/rel */ rel?: string; /** * The HTML `target` attribute for the Link */ target?: "_self" | "_blank" | "_parent" | "_top" | (string & NonNullable); /** * Controls the visual presentation of the link. * - If `'default'`, renders in the brand link color. * - If `'monochrome'`, renders in the current text color; use on colored backgrounds where the default color would clash. */ variant?: (typeof linkVariantValues)[number]; } & Pick; declare const MemoizedLink: import("react").MemoExoticComponent<({ ariaLabel, children, href, id, icon, linkRef, rel, target, testId, translate, variant, onClick, }: LinkProps) => import("@emotion/react/jsx-runtime").JSX.Element>; export { MemoizedLink as Link }; //# sourceMappingURL=Link.d.ts.map