# @types/reactcss

> TypeScript definitions for reactcss

Latest version **1.2.13** (published 2024-12-11) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/reactcss
pnpm add @types/reactcss
yarn add @types/reactcss
bun add @types/reactcss
```

## Health

**Score 55/100 (C)** — status: stable.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: stale.

## Facts

| | |
|---|---|
| Version | 1.2.13 |
| Published | 2024-12-11 |
| First published | 2016-11-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.4 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51442 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/reactcss
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reactcss
- npm.io page: https://npm.io/package/@types/reactcss

## Recent versions

- 1.2.13 (latest) — 2024-12-11
- 1.2.12 (ts4.6) — 2024-02-29
- 1.2.10 (ts4.5) — 2023-11-21
- 1.2.6 (ts3.7) — 2021-10-21
- 1.2.4 (ts3.6) — 2021-07-07
- 1.2.3 (ts2.8) — 2018-08-06
- 1.2.2 (ts2.6) — 2018-02-12
- 1.2.1 (ts2.3) — 2017-06-23
- 1.2.0 (ts2.2) — 2017-03-27
- 1.0.2 (ts2.1) — 2017-01-23
- 1.0.1 (ts2.0) — 2016-12-30
- 1.2.11 — 2023-12-11
- 1.2.9 — 2023-11-07
- 1.2.8 — 2023-10-18
- 1.2.7 — 2023-09-27
- … 2 more at https://npm.io/package/@types/reactcss/versions

## README

# 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.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/reactcss/index.d.ts)
````ts
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](https://npmjs.com/package/@types/react)

# Credits
These definitions were written by [Chris Gervang](https://github.com/chrisgervang), and [Karol Janyst](https://github.com/LKay).

---
_Source: https://npm.io/package/@types/reactcss · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
