import { ElementType, MouseEventHandler, type ReactElement, type ReactNode } from 'react'; import { type PolymorphicComponentProps, type DataTestId, type StylingProps } from '@dynatrace/strato-components/core'; /** * @public */ export interface ActionButtonOwnProps extends StylingProps, DataTestId { /** * Whether the action button is disabled. */ disabled?: boolean; /** * Whether or not the ActionButton label is shown in the expanded header. * If set to false, the label is hidden and only shows in the collapsed menu. * If set to false and the prefixIcon is undefined, the label will be shown regardless. * @defaultValue true */ showLabel?: boolean; /** If set to true, the item will not be moved into the menu in case of insufficient space. */ pin?: boolean; /** Icon shown before the text of the ActionButton. */ prefixIcon?: ReactElement; /** Whether or not the ActionButton is selected. */ isSelected?: boolean; /** * Influences the spacings. Condensed is more compact. */ density?: 'default' | 'condensed'; /** Handler that is called when the ActionButton is interacted with. */ onClick?: MouseEventHandler; /** Node to be displayed as ActionButton label. */ children?: ReactNode; } /** * @public */ export type ActionButtonProps = PolymorphicComponentProps; /** * An action button used in the ActionGroup. * @public */ export declare const ActionButton: (props: ActionButtonProps) => ReactElement | null;