@atlaskit/status
Version:
Fabric Status React Components
17 lines (16 loc) • 683 B
TypeScript
/// <reference types="react" />
import { type WithAnalyticsEventsProps } from '@atlaskit/analytics-next';
export type Color = 'neutral' | 'purple' | 'blue' | 'red' | 'yellow' | 'green';
export type StatusStyle = 'bold' | 'subtle';
export interface OwnProps {
text: string;
color: Color;
style?: StatusStyle;
localId?: string;
onClick?: (event: React.SyntheticEvent<any>) => void;
onHover?: () => void;
role?: string;
isBold?: boolean;
}
export type Props = OwnProps & WithAnalyticsEventsProps;
export declare const Status: import("react").ForwardRefExoticComponent<Omit<OwnProps, keyof WithAnalyticsEventsProps> & import("react").RefAttributes<any>>;