Why Gemfury? Push, build, and install  RubyGems npm packages Python packages Maven artifacts PHP packages Go Modules Debian packages RPM packages NuGet packages

Repository URL to install this package:

Details    
@skava/packages / ui / Button / BaseButtonAtom / BaseButtonAtom.d.ts
Size: Mime:
import * as React from 'react';
import { ButtonProps } from './typings';
declare class Button extends React.Component<ButtonProps> {
    /**
     * @todo - state does not have these
     */
    readonly isDisabled: boolean | undefined;
    readonly isSelected: boolean | undefined;
    readonly isFocused: boolean | undefined;
    readonly isResting: any;
    readonly isPushed: any;
    /**
     * @alias isSecondary
     * ^ (on a secondary button color......)
     *
     * @description makes it gray but not disabled, or less attention
     * @return {Boolean}
     */
    readonly isLowPriority: boolean | undefined;
    /**
     * @todo right, left... ?
     */
    readonly className: string;
    readonly icon: "" | JSX.Element;
    readonly isLink: boolean;
    readonly role: string;
    readonly target: string | undefined;
    readonly type: any;
    readonly identifier: any;
    readonly children: any;
    readonly label: any;
    readonly accessibleAttributes: {
        id: any;
    };
    readonly attributes: {
        className: string;
        value: any;
        role: string;
        tabIndex: string | number | undefined;
        qa?: string | undefined;
        'data-qa'?: string | undefined;
        class?: string | undefined;
        classList?: string | undefined;
        defaultClassName?: string | undefined;
        children?: any;
        text?: any;
        'aria-label'?: string | undefined;
        'aria-controls'?: string | undefined;
        identifier?: string | undefined;
        handleClick?: undefined;
        onClick?: Function | undefined;
        onSubmit?: Function | undefined;
        renderProp?: React.ReactNode;
        isSquare?: boolean | undefined;
        isLowPriority?: boolean | undefined;
        to?: string | undefined;
        timeout?: number | undefined;
        shouldAnimate?: boolean | undefined;
        isAnimated?: boolean | undefined;
        hasAnimation?: boolean | undefined;
        isDisabled?: boolean | undefined;
        isSelected?: boolean | undefined;
        isFocused?: boolean | undefined;
        isResting?: boolean | undefined;
        isPushed?: boolean | undefined;
        iconOrder?: string | number | undefined;
        icon?: React.ReactNode;
        isLink?: boolean | undefined;
        id?: string | undefined;
        label?: string | undefined;
        states?: string | undefined;
        center?: boolean | undefined;
        green?: boolean | undefined;
        blue?: boolean | undefined;
        ghost?: boolean | undefined;
        isPresentational?: boolean | undefined;
        target?: string | undefined;
    };
    readonly tabIndex: string | number | undefined;
    readonly attributeProps: {
        className: string;
    };
    static defaultProps: {
        className: string;
        defaultClassName: string;
        timeout: number;
        shouldAnimate: boolean;
        isActive: boolean;
        target: string;
    };
    state: import("@skava/state").CommonStateInnerType;
    /**
     * @description handles keydown enter - auto works with isFocused
     */
    handleKeyDown: (event: Event | React.MouseEvent<any, MouseEvent>) => void;
    handleClick: (event: Event | React.MouseEvent<any, MouseEvent>) => void;
    render(): JSX.Element;
}
export default Button;
export { Button };