UNPKG

@isotope/prototope

Version:

Isotope-based JavaScript library for speedy UI prototyping

20 lines (17 loc) 429 B
import { Colors, Util } from "../../declarations"; import { createUtil } from "../util"; import { placeholder } from "../../sub-selectors"; /** * Prototope placeholder color util. * * @param value - Config value. * @returns - Prototope util. */ const placeholderColor = (value: keyof Colors): Util => { return placeholder( createUtil(({ colors }) => ({ color: colors[value] })) ); }; export { placeholderColor };