@prezly/theme-kit-ui
Version:
UI components for Prezly themes
18 lines (17 loc) • 880 B
TypeScript
import { type LinkProps } from 'next/link';
import type { HTMLProps, Ref, RefObject } from 'react';
import { type BaseProps, LinkSize, LinkVariant } from './types';
export declare function Link({ variation, className, forwardRef, forceRefresh, size, icon, iconPlacement, disabled, children, contentClassName, localeCode, href, ...linkProps }: Link.Props): import("react/jsx-runtime").JSX.Element;
export declare namespace Link {
type Props = Omit<BaseProps, 'forwardRef'> & Omit<HTMLProps<HTMLAnchorElement>, 'size' | 'type'> & {
contentClassName?: string;
href: string;
localeCode?: LinkProps['locale'];
forceRefresh?: boolean;
forwardRef?: Ref<HTMLAnchorElement> | RefObject<HTMLAnchorElement>;
};
type Variant = LinkVariant;
const Variant: typeof LinkVariant;
type Size = LinkSize;
const Size: typeof LinkSize;
}