Installation
npm install --save @types/reactcss
Summary
This package contains type definitions for reactcss (http://reactcss.com/).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reactcss.
import * as React from "react";
interface LoopableProps extends React.RefAttributes<any> {
children?: React.ReactNode;
"nth-child": number;
"first-child"?: boolean | undefined;
"last-child"?: boolean | undefined;
even?: boolean | undefined;
odd?: boolean | undefined;
}
interface HoverProps<T> extends React.RefAttributes<T> {
children?: React.ReactNode;
hover?: boolean | undefined;
}
interface Classes<T> {
default: Partial<T>;
[scope: string]: Partial<T>;
}
export type CSS = React.CSSProperties;
export function hover<A>(component: React.ComponentClass<A> | React.FunctionComponent<A>): React.ComponentClass<A>;
export function loop(index: number, length: number): LoopableProps;
export default function reactCSS<T>(classes: Classes<T>, ...activations: any[]): T;
Additional Details
- Last updated: Wed, 11 Dec 2024 14:36:56 GMT
- Dependencies: none
- Peer dependencies: @types/react
Credits
These definitions were written by Chris Gervang, and Karol Janyst.