All files / lib/components/buttons CrossButton.d.ts

100% Statements 0/0
100% Branches 0/0
100% Functions 0/0
100% Lines 0/0
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57                                                                                                                 
import React from 'react';
import { ViewStyle, StyleProp, ButtonProps } from 'react-native';
import { Color } from 'csstype';
/**
 * Properties for the {@link CrossButton} component
 * @typedef ICrossButtonProps
 * @type ICrossButtonProps
 */
export interface ICrossButtonProps {
    /**
     * Foreground (icon) color. Default is {@link Colors.CrossBlack}
     */
    color?: Color;
    /**
     * Font-Awesome icon name
     *
     * https://fontawesome.com/icons/
     */
    iconName?: string;
    /**
     * Background color. Default value is {@link Colors.NextButton} if {@link title} was supplied
     */
    backgroundColor?: Color;
    style?: StyleProp<ViewStyle>;
    title?: string;
    /**
     * Size of the icon
     */
    size?: number;
    disabled?: boolean;
    /**
     * Button visual appearence. Default is 'text'
     *
     * https://callstack.github.io/react-native-paper/button.html
     */
    mode?: 'text' | 'outlined' | 'contained';
    /**
     * Optional button styles to apply
     */
    buttonStyle?: ButtonProps;
    onPress?: () => void;
    compact?: boolean;
}
/**
 * A custom button that displays as an Paper Button with icon or just an icon if {@link ICrossButtonProps.title} is not supplied.
 *
 * Remarks: all icons are {@link https://fontawesome.com/v4.7.0/ FontAwesome v4}.
 *
 * Remark: default appearence is "text", see {@link ICrossButtonProps.mode}
 *
 * Properties are {@link ICrossButtonProps}
 */
export declare class CrossButton extends React.Component<ICrossButtonProps> {
    render(): JSX.Element;
}
export default CrossButton;
//# sourceMappingURL=CrossButton.d.ts.map