apphouse
Version:
Component library for React that uses observable state management and theme-able components.
8 lines (7 loc) • 377 B
TypeScript
/**
* Creates a linear gradient CSS string based on an array of colors.
* @param {string[]} colors - An array of colors for the gradient.
* @param {string} direction - The direction of the gradient. (Default: "to right")
* @returns {string} The linear gradient CSS string.
*/
export declare const getLinearGradientString: (colors: string[], direction?: string) => string;