/*! * * Copyright (c) "Neo4j" * Neo4j Sweden AB [http://neo4j.com] * * This file is part of Neo4j. * * Neo4j is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation, either version 3 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ import type React from 'react'; import { type PolymorphicCommonProps } from '../_common/types'; type TextLinkType = 'internal' | 'external'; type TextLinkProps = { /** The content displayed inside the link */ children: React.ReactNode; /** The URL the link points to */ href?: string; /** * The type of the text link. * All types render with an underline and primary text color by default. Additional color styling can be applied via `className`. * - 'internal': A link to another page within the application * - 'external': A link to an external website. An external link icon is appended. * @default 'internal' */ type?: TextLinkType; /** Specifies where to open the linked document. If omitted and `type` is `"external"` it defaults to `"_blank"`. */ target?: HTMLAnchorElement['target']; }; export declare const TextLink: ({ children, href, type, as, className, target, style, htmlAttributes, ref, ...restProps }: PolymorphicCommonProps) => import("react/jsx-runtime").JSX.Element; export {}; //# sourceMappingURL=TextLink.d.ts.map