UNPKG

@navinc/base-react-components

Version:
42 lines (41 loc) 1.25 kB
import { ReactEventHandler, ReactNode } from 'react'; declare const StyledButton: import("styled-components").StyledComponent<"button", any, { wrap?: boolean | undefined; isLoading?: boolean | undefined; variation?: "main" | "outline" | "buttonLink" | "noOutline" | "whiteOutline" | undefined; }, never>; declare type TrackingContext = { type?: string; context?: string; category?: string; payload?: { category?: string; label?: string; name?: string; }; options?: { integrations?: { Salesforce?: boolean; }; }; }; declare type ButtonBaseProps = { children?: ReactNode; isLoading?: boolean; onClick?: ReactEventHandler; trackingContext?: TrackingContext; } & Parameters<typeof StyledButton>[0]; declare type ButtonProps = { isLoading?: boolean; href?: string; asAnchor?: boolean; } & ButtonBaseProps; export declare const Button: { ({ isLoading, ...props }: ButtonProps): JSX.Element; displayName: string; }; declare const StyledButtonExp: import("styled-components").StyledComponent<{ ({ isLoading, ...props }: ButtonProps): JSX.Element; displayName: string; }, any, {}, never>; export default StyledButtonExp;