tdesign-react
Version:
TDesign Component for React
13 lines (12 loc) • 325 B
TypeScript
export type Gradients = {
[percent: string]: string;
};
export type FromTo = {
from: string;
to: string;
};
export type LinearGradient = {
direction?: string;
} & (Gradients | FromTo);
declare const getBackgroundColor: (color: string | string[] | LinearGradient) => string;
export default getBackgroundColor;