@carbon/ibm-products
Version:
Carbon for IBM Products
87 lines (86 loc) • 2.58 kB
TypeScript
/**
* Copyright IBM Corp. 2024
*
* This source code is licensed under the Apache-2.0 license found in the
* LICENSE file in the root directory of this source tree.
*/
import React from 'react';
import { PopoverAlignment } from '@carbon/react';
import { CarbonIconType } from '@carbon/react/icons';
interface ConditionBuilderButtonProps {
className?: string;
label: string;
hideLabel?: boolean;
tooltipAlign?: PopoverAlignment;
renderIcon?: CarbonIconType;
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
onBlur?: React.FocusEventHandler<HTMLButtonElement>;
onFocus?: React.FocusEventHandler<HTMLButtonElement>;
onMouseEnter?: (e: React.MouseEvent<HTMLButtonElement>) => void;
onMouseLeave?: (e: React.MouseEvent<HTMLButtonElement>) => void;
showToolTip?: boolean;
wrapperProps?: object;
isInvalid?: boolean;
wrapperClassName?: string;
tabIndex?: number;
description?: string;
}
export declare const ConditionBuilderButton: {
({ className, label, hideLabel, tooltipAlign, renderIcon: Icon, onClick, showToolTip, wrapperProps, onBlur, onFocus, onMouseEnter, onMouseLeave, isInvalid, wrapperClassName, tabIndex, description, ...rest }: ConditionBuilderButtonProps): React.JSX.Element;
propTypes: {
/**
* Provide an optional class to be applied to the containing node.
*/
className: any;
/**
* decides if label and tooltip to be hidden
*/
hideLabel: any;
/**
* boolean to know the updated value in not valid
*/
isInvalid: any;
/**
* label of the button
*/
label: any;
/**
* mouse events callbacks
*/
onBlur: any;
/**
* callback triggered on click of add button
*/
onClick: any;
onFocus: any;
onMouseEnter: any;
onMouseLeave: any;
/**
* Optional prop to allow overriding the icon rendering.
*/
renderIcon: any;
/**
*/
/**
*decides if tooltip to be shown
*/
showToolTip: any;
/**
* Tab index
*/
tabIndex: any;
/**
* tooltip position
*/
tooltipAlign: any;
/**
* classname applies to the wrapper of popover
*/
wrapperClassName: any;
/**
* optional props for tree grid to add role and aria-label to wrapper span
*/
wrapperProps: any;
};
};
export {};