@carbon/ibm-products
Version:
Carbon for IBM Products
40 lines (39 loc) • 1.12 kB
TypeScript
import React, { PropsWithChildren } from 'react';
import { CarbonIconType } from '@carbon/icons-react/lib/CarbonIcon';
interface ActionBarItemProps extends PropsWithChildren {
/**
* Specify an optional className to be added to your Button
*
* (inherited from Carbon Button)
*/
className?: string;
/**
* If specifying the `renderIcon` prop, provide a description for that icon that can
* be read by screen readers
*
* (inherited from Carbon Button)
*/
label?: string;
/**
* Optional click handler
*
* (inherited from Carbon Button)
*/
onClick?: () => void;
/**
* Optional prop to allow overriding the icon rendering.
* Can be a React component class
*
* (inherited from Carbon Button)
*/
renderIcon?: CarbonIconType;
/**
* Optional tab index
*/
tabIndex?: number;
}
/**
* The ActionBarItem is used in the page header to populate the action bar
*/
export declare let ActionBarItem: React.ForwardRefExoticComponent<ActionBarItemProps & React.RefAttributes<HTMLDivElement>>;
export {};