Interface CustomButton

interface CustomButton {
    action?: (() => void | Promise<void>);
    show: boolean;
    backgroundColor?: string;
    disabled?: boolean;
    icon?: IconDefinition;
    iconStyle?: CSSProperties;
    text?: string;
    textStyle?: CSSProperties;
    customComponent?: ReactNode;
    buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>;
    contentProps?: HTMLAttributes<HTMLDivElement>;
    iconProps?: Partial<FontAwesomeIconProps>;
    renderAsButton?: boolean;
}

Properties

action?: (() => void | Promise<void>)
show: boolean
backgroundColor?: string
disabled?: boolean
icon?: IconDefinition
iconStyle?: CSSProperties
text?: string
textStyle?: CSSProperties
customComponent?: ReactNode
buttonProps?: ButtonHTMLAttributes<HTMLButtonElement>
contentProps?: HTMLAttributes<HTMLDivElement>
iconProps?: Partial<FontAwesomeIconProps>
renderAsButton?: boolean

When set to false, the wrapper renders as a non-button element so interactive custom components (for example, components that render their own buttons) are not nested inside a native button.