UNPKG

@atlaskit/status

Version:
21 lines (20 loc) 738 B
/** * @jsxRuntime classic * @jsx jsx */ import { type ForwardRefExoticComponent, type RefAttributes } from '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 { color: Color; isBold?: boolean; localId?: string; onClick?: (event: React.SyntheticEvent<any>) => void; onHover?: () => void; role?: string; style?: StatusStyle; text: string; } export type Props = OwnProps & WithAnalyticsEventsProps; export declare const Status: ForwardRefExoticComponent<Omit<OwnProps, keyof WithAnalyticsEventsProps> & RefAttributes<any>>;