UNPKG

@janiscommerce/ui-native

Version:
51 lines (50 loc) 1.36 kB
import { FC } from 'react'; import { ViewStyle, TextStyle } from 'react-native'; import { BaseButtonProps } from '../../atoms/BaseButton'; export declare const types: { main: string; secondary: string; }; export declare const variant: { contained: string; outlined: string; text: string; }; export declare const color: { primary: string; black: string; success: string; error: string; warning: string; alert: string; }; export declare const iconPosition: { top: string; bottom: string; left: string; right: string; }; export type buttonType = typeof types; export type keyType = keyof buttonType; export type buttonVariant = typeof variant; export type keyVariant = keyof buttonVariant; export type buttonColor = typeof color; export type keyColor = keyof buttonColor; export type buttonIconPosition = typeof iconPosition; export type keyIconPosition = keyof buttonIconPosition; export interface ButtonProps extends BaseButtonProps { type?: keyType; variant?: keyVariant; color?: keyColor; isLoading?: boolean; value?: string | null; icon?: string; iconPosition?: keyIconPosition; disabled?: boolean; style?: ViewStyle; pressedStyle?: ViewStyle; iconStyle?: TextStyle; textStyle?: TextStyle; } declare const Button: FC<ButtonProps>; export default Button;