@guardian/threads
Version:
23 lines (22 loc) • 680 B
TypeScript
import { FunctionComponent, ReactNode, CSSProperties } from 'react';
import { LocationDescriptor } from 'history';
declare type ButtonProps = {
id?: string;
children?: ReactNode;
to?: LocationDescriptor<any>;
title?: string;
appearance?: 'default' | 'button' | 'toolset' | 'invisible' | 'transparent' | 'important';
className?: string;
href?: string;
size?: 'medium' | 'large';
isDropdown?: boolean;
active?: boolean;
showSpinner?: boolean;
icon?: ReactNode;
type?: 'submit';
onClick?: () => void;
style?: CSSProperties;
disabled?: boolean;
};
export declare const Button: FunctionComponent<ButtonProps>;
export {};