@rarcifa/cronos-design-system
Version:
A typescript react component library following the Cronos branding standards
13 lines (12 loc) • 508 B
TypeScript
import { TagProps } from './interface';
export declare const helper: {
/**
* Determines the text color of the button based on its variant.
* Uses the Variant enum to set specific text colors for different button variants.
* Defaults to a standard color if no matching variant is found.
*
* @param {ButtonProps} props - The props passed to the button component.
* @returns {string} The calculated text color.
*/
getColor: (props: TagProps) => string;
};