react-spectrum
Version:
Generate colorful text placeholders 🎨
13 lines (12 loc) • 326 B
TypeScript
declare const getWords: ({ width, colors, wordWidths, wordDistances, truncate, }: {
width: number;
colors: Array<string>;
wordWidths: Array<number>;
wordDistances: Array<number>;
truncate: boolean;
}) => Array<{
width: number;
distance: number;
background: string;
}>;
export default getWords;