UNPKG

@primer/components

Version:
13 lines (12 loc) 860 B
/// <reference types="react" /> import { FontSizeProps } from 'styled-system'; import { SystemCommonProps, SystemLayoutProps } from '../constants'; import { ComponentProps } from '../utils/types'; export declare const buttonSystemProps: import("styled-system").styleFn; export declare type ButtonSystemProps = FontSizeProps & SystemCommonProps & SystemLayoutProps; declare const ButtonBase: import("styled-components").StyledComponent<"button", any, { as?: string | import("react").ComponentClass<any, any> | import("react").FunctionComponent<any> | undefined; variant?: "large" | "medium" | "small" | undefined; } & FontSizeProps<Required<import("styled-system").Theme<import("styled-system").TLengthStyledSystem>>, string | number | symbol>, never>; export declare type ButtonBaseProps = ComponentProps<typeof ButtonBase>; export default ButtonBase;