Package Info
Display dependency information and version changes.
The PackageInfo component displays package dependency information including version changes and change type badges.
Install using CLI
Install Manually
Copy and paste the following files into the same folder.
Features
- Version change display (current → new)
- Color-coded change type badges
- Dependencies list
- Description support
Change Types
| Type | Color | Use Case |
|---|---|---|
major | Red | Breaking changes |
minor | Yellow | New features |
patch | Green | Bug fixes |
added | Blue | New dependency |
removed | Gray | Removed dependency |
Props
<PackageInfo />
namerequiredstring
currentVersionstring
newVersionstring
changeType"major" | "minor" | "patch" | "added" | "removed"
...propsHTMLAttributes
<PackageInfoHeader />
...propsHTMLAttributes
<PackageInfoName />
defaultSlot
...propsHTMLAttributes
<PackageInfoChangeType />
defaultSlot
...propsBadgeProps
<PackageInfoVersion />
defaultSlot
...propsHTMLAttributes
<PackageInfoDescription />
...propsHTMLAttributes
<PackageInfoContent />
...propsHTMLAttributes
<PackageInfoDependencies />
...propsHTMLAttributes
<PackageInfoDependency />
namerequiredstring
versionstring
...propsHTMLAttributes