Interface ButtonProps

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

Properties

additionalEvents?: Partial<Record<GenericEvents, DomBuilderEventHandler | DomBuilderEventHandlerWithOptions>>
attributes?: Record<string, string>
border?: boolean
children?: (string | HTMLElement | ExtendedHTMLElement)[]
classNames?: string[]
confirmation?: {
    cancelButtonText: string;
    confirmButtonText: string;
    description?: string;
    title: string;
}

Type declaration

  • cancelButtonText: string
  • confirmButtonText: string
  • Optional description?: string
  • title: string
disabled?: boolean
fillState?: "hover" | "always"
hidden?: boolean
icon?: HTMLElement | ExtendedHTMLElement
label?: string | HTMLElement | ExtendedHTMLElement
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" | "main" | "primary" | "clear" | "dimmed-clear"
testId?: string
tooltip?: string
tooltipHorizontalDirection?: OverlayHorizontalDirection
tooltipVerticalDirection?: OverlayVerticalDirection