@carbon/ibm-products
Version:
Carbon for IBM Products
35 lines • 1.37 kB
TypeScript
/**
* Copyright IBM Corp. 2021, 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 { IconButton } from '@carbon/react';
export declare const blockClass: string;
export interface ToolbarButtonProps extends React.ComponentProps<typeof IconButton> {
/** Determines whether the caret is rendered */
caret?: boolean;
/** Provide an optional class to be applied to the containing node */
className?: string;
/**
* @deprecated use `label` instead
* Specifies the label for the icon button */
iconDescription?: string;
/** Specifies the label for the icon button */
label: string;
/** Specifies the icon to be used by the ToolbarButton component */
renderIcon: React.ElementType;
}
/** Toolbar buttons are common functions performed as part of a products interface or an open window. */
export declare const ToolbarButton: React.ForwardRefExoticComponent<ToolbarButtonProps & {
children?: React.ReactNode | undefined;
} & React.RefAttributes<unknown>>;
export declare const deprecatedProps: {
/**
* **Deprecated**
* Specifies the label for the icon button
* */
iconDescription: import("prop-types").Requireable<string>;
};
//# sourceMappingURL=ToolbarButton.d.ts.map