phx-react
Version:
PHX REACT
12 lines (11 loc) • 425 B
TypeScript
import React from 'react';
export type BadgeType = 'default' | 'informational' | 'success' | 'attention' | 'warning' | 'danger';
export interface BadgeProps {
type?: BadgeType;
text?: string;
className?: string;
removeButton?: boolean;
onClick?(): void;
hideIcon?: boolean;
}
export declare function PHXBadge({ text, type, className, removeButton, onClick, hideIcon }: BadgeProps): React.JSX.Element;