@prezly/theme-kit-ui
Version:
UI components for Prezly themes
17 lines (16 loc) • 723 B
TypeScript
import type { ButtonHTMLAttributes, Ref } from 'react';
import type { Theme as GenericTheme } from '../../styler';
import { type BaseProps, ButtonSize, ButtonVariant } from './types';
export declare function Button(props: Button.Props): import("react/jsx-runtime").JSX.Element;
export declare namespace Button {
type Props = BaseProps & ButtonHTMLAttributes<HTMLButtonElement> & {
theme?: Theme;
forwardRef?: Ref<HTMLButtonElement>;
};
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;
}