@wazespace/wme-react-components
Version:
A package with useful replications of the Waze Map Editor components to use in userscripts
18 lines • 605 B
TypeScript
import { HTMLAttributes, ReactNode } from 'react';
import { WzBadgeNativeColor, WzBadgeNativeSize } from '../wme-intrinsic-elements-props';
type WzBadgeWithDotProps = {
hasDot: true;
color?: WzBadgeNativeColor | string;
};
type WzBadgeWithoutDotProps = {
hasDot?: false;
color?: never;
};
type WzBadgeProps = HTMLAttributes<HTMLElement> & {
emphasized?: boolean;
size?: WzBadgeNativeSize;
children: ReactNode;
} & (WzBadgeWithDotProps | WzBadgeWithoutDotProps);
export declare function WzBadge(props: WzBadgeProps): JSX.Element;
export {};
//# sourceMappingURL=WzBadge.d.ts.map