@prezly/theme-kit-ui
Version:
UI components for Prezly themes
21 lines (20 loc) • 918 B
TypeScript
import { type LinkProps } from 'next/link';
import type { HTMLProps, Ref, RefObject } from 'react';
import type { Theme as GenericTheme } from '../../styler';
import { type BaseProps, ButtonSize, ButtonVariant } from './types';
export declare function ButtonLink(props: ButtonLink.Props): import("react/jsx-runtime").JSX.Element;
export declare namespace ButtonLink {
type Props = BaseProps & Omit<HTMLProps<HTMLAnchorElement>, 'size' | 'type'> & {
theme?: Theme;
href: string;
localeCode?: LinkProps['locale'];
forceRefresh?: boolean;
forwardRef?: Ref<HTMLAnchorElement> | RefObject<HTMLAnchorElement>;
};
type Variant = ButtonVariant;
const Variant: typeof ButtonVariant;
type Size = ButtonSize;
const Size: typeof ButtonSize;
type Theme = GenericTheme<'button' | 'icon' | 'content', Omit<Props, 'theme' | 'forwardRef'>>;
const theme: Theme;
}