import * as React from 'react'; import { DistributiveOmit } from '@mui/types'; import { SxProps } from '@mui/system'; import { OverridableComponent, OverrideProps } from '../OverridableComponent'; import { Theme } from '../styles'; import { TypographyProps } from '../Typography'; import { LinkClasses } from './linkClasses'; export interface LinkTypeMap

{ props: P & DistributiveOmit & { /** * The content of the component. */ children?: React.ReactNode; /** * Override or extend the styles applied to the component. */ classes?: Partial; /** * The color of the link. * @default 'primary' */ color?: TypographyProps['color']; /** * The system prop that allows defining system overrides as well as additional CSS styles. */ sx?: SxProps; /** * `classes` prop applied to the [`Typography`](/material-ui/api/typography/) element. */ TypographyClasses?: TypographyProps['classes']; /** * Controls when the link should have an underline. * @default 'always' */ underline?: 'none' | 'hover' | 'always'; /** * Applies the theme typography styles. * @default 'inherit' */ variant?: TypographyProps['variant']; }; defaultComponent: D; } /** * * Demos: * * - [Breadcrumbs](https://mui.com/material-ui/react-breadcrumbs/) * - [Links](https://mui.com/material-ui/react-link/) * * API: * * - [Link API](https://mui.com/material-ui/api/link/) * - inherits [Typography API](https://mui.com/material-ui/api/typography/) */ declare const Link: OverridableComponent; export type LinkBaseProps = Omit, 'color'> & DistributiveOmit; export type LinkProps< D extends React.ElementType = LinkTypeMap['defaultComponent'], P = {}, > = OverrideProps, D>; export default Link;