UNPKG

tss-react

Version:

Type safe CSS-in-JS API heavily inspired by react-jss

15 lines (14 loc) 619 B
import type { CSSObject as CSSObject_base, CSSInterpolation } from "@emotion/serialize"; export type { CSSInterpolation }; export interface CSSObject extends CSSObject_base { /** https://emotion.sh/docs/labels */ label?: string; } export interface Css { (template: TemplateStringsArray, ...args: CSSInterpolation[]): string; (...args: CSSInterpolation[]): string; } import type { CxArg } from "./tools/classnames"; export type { CxArg }; export declare type Cx = (...classNames: CxArg[]) => string; export declare function matchCSSObject(arg: TemplateStringsArray | CSSInterpolation): arg is CSSObject;