# PackageInfo

A package change with versions and dependencies.

- **Use it for**: A package change with versions and dependencies.
- **Not for**: Code changes. Try [CodeDiff](https://unseenui.com/components/code-diff/).

## Installation

```bash
npm install @stackunseen/ui
```

## Usage

```tsx
import { PackageInfo } from '@stackunseen/ui/devtools';
import '@stackunseen/ui/styles.css';

<PackageInfo name="react" currentVersion="18.3.1" newVersion="19.0.0" changeType="major" />
```

## All props

| Prop | Type | Description |
| --- | --- | --- |
| `changeType` | `"removed" \| "major" \| "minor" \| "patch" \| "added"` |  |
| `className` | `string` |  |
| `currentVersion` | `string` |  |
| `dependencies` | `readonly PackageDependency[]` |  |
| `description` | `string` |  |
| `headingLevel` | `3 \| 2 \| 4 \| 5 \| 6` |  |
| `name` (required) | `string` |  |
| `newVersion` | `string` |  |

## Keyboard

Tab reaches controls; Enter or Space activates buttons. Accordions use arrow keys, Home and End. Select menus support arrows and typeahead; Escape closes menus and dialogs and restores focus.

## Works with

[CodeTabs](https://unseenui.com/components/code-tabs/), [Snippet](https://unseenui.com/components/snippet/), [Commit](https://unseenui.com/components/commit/), [EnvironmentVariables](https://unseenui.com/components/environment-variables/), [SchemaDisplay](https://unseenui.com/components/schema-display/), [StackTrace](https://unseenui.com/components/stack-trace/), [WebPreview](https://unseenui.com/components/web-preview/), [Image](https://unseenui.com/components/image/), [FileExplorer](https://unseenui.com/components/file-explorer/), [CodeDiff](https://unseenui.com/components/code-diff/), [TerminalOutput](https://unseenui.com/components/terminal-output/), [TestResults](https://unseenui.com/components/test-results/)

Page: https://unseenui.com/components/package-info/
