# P progress 1

> Basic progress bar

A shadcn/ui block from the [@coss](https://coss.com/ui) registry, listed on [shadcn.exchange](https://shadcn.exchange/r/coss/p-progress-1).

- Page, with a live preview: https://shadcn.exchange/r/coss/p-progress-1
- Screenshot: https://abzjhwgwpdpz7ua5.public.blob.vercel-storage.com/shots/coss/p-progress-1-light-38dfc9f2cda80cf4.png
- Registry item: https://coss.com/ui/r/p-progress-1.json
- Categories: progress
- Listed: 2026-10-13, source last changed 2026-10-13

## Install

```bash
npx shadcn@latest add https://coss.com/ui/r/p-progress-1.json
```

Run it in a project that has shadcn/ui set up. It adds the files below and installs what they depend on.

## Dependencies

- Registry items: `@coss/progress`

## Files

### `registry/default/particles/p-progress-1.tsx`

```tsx
"use client";

import { useEffect, useState } from "react";
import { Progress } from "@/registry/default/ui/progress";

export default function Particle() {
  const [value, setValue] = useState(20);

  useEffect(() => {
    const interval = setInterval(() => {
      setValue((current) =>
        Math.min(100, Math.round(current + Math.random() * 25)),
      );
    }, 1000);
    return () => clearInterval(interval);
  }, []);

  return <Progress value={value} />;
}
```
