# @primereact/types

> Type definitions for PrimeReact.

Latest version **11.1.0** (published 2026-08-05) · SEE LICENSE IN LICENSE.md license · 0 weekly downloads

## Install

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

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 11.1.0 |
| Published | 2026-08-05 |
| First published | 2025-06-30 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE.md |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 0 |
| Unpacked size | 1.7 MB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | PrimeTek Informatics |
| Maintainers | mert.sincan, cagatay.civici |

## Links

- npm: https://www.npmjs.com/package/@primereact/types
- Homepage: https://primereact.dev
- Issues: https://support.primeui.dev
- npm.io page: https://npm.io/package/@primereact/types

## Recent versions

- 11.1.0 (latest) — 2026-08-05
- 11.0.0 — 2026-07-15
- 11.0.0-rc.4 — 2026-07-15
- 11.0.0-rc.3 — 2026-07-15
- 11.0.0-rc.2 — 2026-07-08
- 11.0.0-rc.1 — 2026-06-28
- 11.0.0-alpha.10 — 2026-02-11
- 11.0.0-alpha.9 — 2025-12-18
- 11.0.0-alpha.8 — 2025-12-01
- 11.0.0-alpha.7 — 2025-10-16
- 11.0.0-alpha.6 — 2025-10-06
- 11.0.0-alpha.5 — 2025-08-28
- 11.0.0-alpha.4 — 2025-07-31
- 11.0.0-alpha.3 — 2025-07-24
- 11.0.0-alpha.2 — 2025-07-14
- … 1 more at https://npm.io/package/@primereact/types/versions

## README

[![Cover](https://fqjltiegiezfetthbags.supabase.co/storage/v1/object/public/common.images/npm/primereact-npm.jpg)](https://primereact.dev)

# @primereact/types

TypeScript definitions shared across PrimeReact: prop interfaces, instance shapes, Pass Through contracts and the core infrastructure types that `@primereact/core`, `@primereact/headless`, `@primereact/styles` and `@primereact/ui` are built on.

Every component already re-exports its own types, so a separate install is only needed to reference a type without pulling in the runtime, or to author a component against PrimeReact's contracts.

```bash
npm install -D @primereact/types
```

## Usage

Per-component types live under `@primereact/types/primitive/<name>`, and the matching hook types under `@primereact/types/headless/<name>`.

```ts
import type { ButtonProps, ButtonInstance } from '@primereact/types/primitive/button';
```

Each component contributes a consistent set: `Props` extending `BaseComponentProps`, `State` for the exposed internal state, `Instance` for what a `ref` returns and what Pass Through functions receive, `PassThrough` with one entry per internal element, and `ClassNames` for the `.p-` names the styled layer emits.

`BaseComponentProps` combines the headless props, the global component props (`unstyled`, `pt`, `ptOptions`, `as`) and the intrinsic props of the rendered element. A component's prop interface extends it rather than restating any of them.

## Documentation

- [Components](https://primereact.dev/docs/styled/components/autocomplete)
- [Pass Through](https://primereact.dev/docs/styled/guides/theming/unstyled)
- [MCP server](https://www.npmjs.com/package/@primereact/mcp)

## License

Licensed under the [PrimeUI License](https://primeui.dev/licenses) - Copyright (c) [PrimeTek Informatics](https://www.primetek.com.tr)

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