@atlaskit/comment
Version:
A comment displays discussions and user feedback.
27 lines (26 loc) • 875 B
TypeScript
import React, { type FC, type ReactNode } from 'react';
import type UIAnalyticsEvent from '@atlaskit/analytics-next/UIAnalyticsEvent';
export interface AuthorProps {
/**
* The name of the author.
*/
children?: ReactNode;
/**
* The URL of the link. If not provided, the element will be rendered as text.
*/
href?: string;
/**
* 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 Author: FC<AuthorProps>;
export default Author;