Interface ButtonProps

interface ButtonProps {
    additionalEvents?: Partial<Record<GenericEvents, DomBuilderEventHandlerWithOptions | DomBuilderEventHandler>>;
    attributes?: Record<string, string>;
    border?: boolean;
    children?: (string | ExtendedHTMLElement | HTMLElement)[];
    classNames?: string[];
    disabled?: boolean;
    fillState?: "hover" | "always";
    icon?: ExtendedHTMLElement | HTMLElement;
    label?: string | ExtendedHTMLElement | HTMLElement;
    onClick: ((e) => void);
    onHover?: ((e) => void);
    primary?: boolean;
    status?: "info" | "warning" | "error" | "success" | "primary" | "main" | "clear";
    testId?: string;
    tooltip?: string;
    tooltipHorizontalDirection?: OverlayHorizontalDirection;
    tooltipVerticalDirection?: OverlayVerticalDirection;
}

Properties

additionalEvents?: Partial<Record<GenericEvents, DomBuilderEventHandlerWithOptions | DomBuilderEventHandler>>
attributes?: Record<string, string>
border?: boolean
children?: (string | ExtendedHTMLElement | HTMLElement)[]
classNames?: string[]
disabled?: boolean
fillState?: "hover" | "always"
icon?: ExtendedHTMLElement | HTMLElement
label?: string | ExtendedHTMLElement | HTMLElement
onClick: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: Event

      Returns void

onHover?: ((e) => void)

Type declaration

    • (e): void
    • Parameters

      • e: Event

      Returns void

primary?: boolean
status?: "info" | "warning" | "error" | "success" | "primary" | "main" | "clear"
testId?: string
tooltip?: string
tooltipHorizontalDirection?: OverlayHorizontalDirection
tooltipVerticalDirection?: OverlayVerticalDirection