@heycar-uikit/core
Version:
The React UI library from HeyCar
27 lines (26 loc) • 694 B
TypeScript
/// <reference types="react" />
import React from 'react';
interface BadgeProps {
/**
* Customize Badge text color
*/
color?: "primary" | "secondary" | "tertiary";
/**
* The content of the Badge
*/
children: React.ReactNode;
/**
* Element before the children.
*/
leftIcon?: React.ReactNode;
/**
* The component used for the root node. Either a string to use a HTML element or a component
*/
Component?: React.ElementType;
/**
* The id for testing
*/
dataTestId?: string;
}
declare const Badge: React.ForwardRefExoticComponent<BadgeProps & React.RefAttributes<HTMLElement>>;
export { Badge as default };