@atlaskit/comment
Version:
A comment displays discussions and user feedback.
28 lines (27 loc) • 1.11 kB
TypeScript
import React, { type ReactNode } from 'react';
import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
import type { WithAnalyticsEventsProps } from '@atlaskit/analytics-next/withAnalyticsEvents';
export interface CommentActionItemProps extends WithAnalyticsEventsProps {
/**
* The content to render inside the action button.
*/
children?: ReactNode;
/**
* Set if the action button is disabled.
*/
isDisabled?: boolean;
/**
* Handler called when the element is clicked.
*/
onClick?: (event: React.MouseEvent<HTMLElement, MouseEvent>, analyticsEvent?: UIAnalyticsEvent) => void;
/**
* Handler called when the element is focused.
*/
onFocus?: (event: React.FocusEvent<HTMLElement>) => void;
/**
* Handler called when the element is moused over.
*/
onMouseOver?: (event: React.MouseEvent<HTMLElement, MouseEvent>) => void;
}
declare const ActionItem: React.ForwardRefExoticComponent<React.PropsWithoutRef<CommentActionItemProps> & React.RefAttributes<HTMLSpanElement>>;
export default ActionItem;