@carbon/ibm-products
Version:
Carbon for IBM Products
32 lines • 1.04 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 PropTypes from 'prop-types';
interface ConditionConnectorProps {
operator: string;
className: string;
onChange?: (op: string) => void;
}
declare const ConditionConnector: {
({ operator, className, onChange, ...rest }: ConditionConnectorProps): React.JSX.Element;
propTypes: {
/**
* Provide an optional class to be applied to the containing node.
*/
className: PropTypes.Requireable<string>;
/**
* callback to update the current condition of the state tree
*/
onChange: PropTypes.Requireable<(...args: any[]) => any>;
/**
* string that defines the connector operator (and/or)
*/
operator: PropTypes.Requireable<string>;
};
};
export default ConditionConnector;
//# sourceMappingURL=ConditionConnector.d.ts.map