UNPKG

motyl

Version:

Helper functions for creating responsive CSS-in-JS styles without runtime

5 lines (4 loc) 315 B
import { PropertiesHyphen } from "csstype"; import { BaseBreakpoints } from "../breakpoints/utils"; import { Styles } from "../interfaces"; export default function createResponsive<B extends string>(breakpoints: BaseBreakpoints<B>): (prop: keyof PropertiesHyphen, values: Partial<Record<B, string>>) => Styles;