Skip to content
VenusUI
Get started

Credit Score Card

A credit health section: the score gauge, the factors behind it, the trend and a tip.

Preview

Installation

npx shadcn@latest add @venusui/credit-01

Run this in a project set up with shadcn. If you haven’t set it up yet, run npx shadcn@latest init first.

Files added to your project

Paths use the default shadcn aliases. The CLI follows the aliases in your components.json.

  • @/components/ui/score-gauge.tsxfrom score-gauge
  • @/components/credit-01.tsx

Usage

The code behind the preview above.

credit-01-demo.tsx

import { Credit01 } from "@/components/credit-01"

export default function Credit01Demo() {
  return <Credit01 />
}

API reference

No props. The factors and history are arrays at the top of the file.

Requirements

  • VenusUI score-gauge. The CLI installs it.
  • React 19 and Tailwind CSS v4.

Customization

  • Edit factors (level is 0–1) and history (the last six scores).

Accessibility

  • The trend line is an image labelled with the scores; factor ratings are text, not color alone.

Troubleshooting

Something looks different from the preview.
Blocks use your project’s theme and your own shadcn components, so they follow your styles.
Unknown registry "@venusui"
Your shadcn CLI couldn’t find the namespace in the shadcn registry index. Use the latest CLI (npx shadcn@latest), install by URL, or register it with its address: npx shadcn@latest registry add @venusui=https://venusui.com/r/{name}.json.
No components.json found
Run npx shadcn@latest init in your project first.