@types/reactcss
TypeScript icon, indicating that this package has built-in type declarations

1.2.13 • Public • Published

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.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/reactcss

Weekly Downloads

633,808

Version

1.2.13

License

MIT

Unpacked Size

4.47 kB

Total Files

5

Last publish

Collaborators

  • types