UNPKG

@funkit/connect

Version:

Funkit Connect SDK elevates DeFi apps via web2 sign-ins and one-click checkouts.

21 lines (20 loc) 860 B
import React, { type MouseEventHandler } from 'react'; import { type BoxProps } from '../Box/Box'; export type FunButtonTypes = 'primary' | 'secondary' | 'tertiary' | 'tertiary-small'; export interface FunButtonProps { id?: string; title: string; customTitleComponent?: React.ReactNode; onClick?: MouseEventHandler; type?: FunButtonTypes; height?: BoxProps['height']; isDisabled?: boolean; isLoading?: boolean; loaderSize?: number; borderRadius?: BoxProps['borderRadius']; textSize?: BoxProps['fontSize']; uppercase?: boolean; textWeight?: BoxProps['fontWeight']; testId?: string; } export declare function FunButton({ id, title, customTitleComponent, onClick, isDisabled, type, isLoading, loaderSize, textSize, textWeight, borderRadius, height, uppercase, testId, }: FunButtonProps): React.JSX.Element;