@carbon/ibm-products
Version:
Carbon for IBM Products
59 lines • 1.7 kB
TypeScript
/**
* Copyright IBM Corp. 2025
*
* 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 { MenuButtonProps } from '@carbon/react';
import React, { ReactNode } from 'react';
/**
* ----------------
* TearsheetHeaderActions
* ----------------
*/
type EnhancedChild = React.ReactElement<{
id: string;
overflowItemLabel: string;
}>;
export interface TearsheetHeaderActionsProps {
/**
* Action items. Each should be a `TearsheetHeaderActionItem`.
*/
children: EnhancedChild[];
/**
* Optional class name.
*/
className?: string;
/**
* Props forwarded to the overflow `MenuButton` shown when items exceed the
* available width.
*/
menuButtonProps?: Partial<MenuButtonProps>;
}
export declare const TearsheetHeaderActions: React.ForwardRefExoticComponent<TearsheetHeaderActionsProps & React.RefAttributes<HTMLDivElement>>;
/**
* ----------------
* TearsheetHeaderActionsItem
* ----------------
*/
export interface TearsheetHeaderActionItemProps {
/**
* Provide child elements to be rendered inside TearsheetHeaderActions.
*/
children: ReactNode;
/**
* Specify an optional className to be added to your TearsheetHeaderActions
*/
className?: string;
/**
* The PageHeaderContent's page actions collapsible Menu button label
*/
overflowItemLabel?: string;
id?: string;
}
export declare const TearsheetHeaderActionItem: {
({ children, className, }: TearsheetHeaderActionItemProps): React.JSX.Element;
displayName: string;
};
export {};
//# sourceMappingURL=TearsheetHeaderActions.d.ts.map