# @primevue/core

Latest version **5.0.4** (published 2026-10-22) · SEE LICENSE IN LICENSE.md license · 0 weekly downloads

## Install

```sh
npm install @primevue/core
pnpm add @primevue/core
yarn add @primevue/core
bun add @primevue/core
```

## Health

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

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

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 5.0.4 |
| Published | 2026-10-22 |
| First published | 2024-06-12 |
| Weekly downloads | 0 |
| License | SEE LICENSE IN LICENSE.md |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 253.3 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | PrimeTek Informatics |
| Maintainers | cagatay.civici, mert.sincan |

## Links

- npm: https://www.npmjs.com/package/@primevue/core
- Repository: https://github.com/primefaces/primevue-nextchapter
- Homepage: https://primevue.dev
- Issues: https://support.primeui.dev
- npm.io page: https://npm.io/package/@primevue/core

## Dependencies (3)

- [@primeuix/utils](https://npm.io/package/@primeuix/utils.md) ^0.8.3
- [@primeuix/styled](https://npm.io/package/@primeuix/styled.md) ^1.2.0
- [@primeui/license-manager](https://npm.io/package/@primeui/license-manager.md) ^1.0.0

## Recent versions

- 5.0.4 (latest) — 2026-10-22
- 5.0.3 — 2026-10-20
- 5.0.2 — 2026-09-29
- 5.0.1 — 2026-08-13
- 5.0.0 — 2026-07-15
- 5.0.0-rc.4 — 2026-07-15
- 5.0.0-rc.3 — 2026-07-15
- 5.0.0-rc.2 — 2026-07-08
- 5.0.0-rc.1 — 2026-06-28
- 4.5.5 — 2026-04-08
- 4.5.4 — 2025-12-18
- 4.5.3 — 2025-12-10
- 4.5.2 — 2025-12-08
- 4.5.1 — 2025-12-03
- 4.5.0 — 2025-11-27
- … 33 more at https://npm.io/package/@primevue/core/versions

## README

# PrimeVue Core

Shared infrastructure for PrimeVue components. Every component and editable input in the library depends on this package for base classes, theming, configuration, Pass Through, and forms integration.

## Base component hierarchy

Three layered base classes cover the full component spectrum.

**BaseComponent** handles styling, Pass Through, design token resolution (`dt()`), and theme loading. No forms awareness.

**BaseEditableHolder** extends `BaseComponent` with the forms bridge. Inputs extending this class automatically register with a parent `<Form>` via provide/inject (`$pcForm`, `$pcFormField`) without importing `@primevue/forms` directly.

**BaseInput** extends `BaseEditableHolder` and adds `size`, `fluid`, and `variant` props for form inputs.

## Configuration

`PrimeVue` plugin and `usePrimeVue()` composable expose global settings (theme preset, locale, PT defaults, ripple) through Vue's provide/inject.

## Pass Through (PT)

Lets consumers target any internal element inside a component with custom attributes or classes. Accepts static objects or functions receiving the current component instance.

## Styling

`useStyle()` handles scoped runtime CSS injection and integrates with `@primeuix/styled` for design token resolution.

## Forms bridge

`BaseEditableHolder` is the contract between any editable input and `@primevue/forms`. When a component extends it and is placed inside `<Form>`, registration, value sync, and invalid state all happen automatically.

## Usage

```ts
// main.ts
import PrimeVue from 'primevue/config';
import Aura from '@primeuix/themes/aura';

app.use(PrimeVue, { theme: { preset: Aura } });
```

```ts
import { usePrimeVue } from '@primevue/core/config';

const primevue = usePrimeVue();
// primevue.config.theme, .locale, .pt, ...
```

## License

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

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