PU-Progress Component
A versatile progress indicator component with multiple display modes and size options
Usage
Basic Usage
Prop | Type | Required | Default | Description |
---|---|---|---|---|
mode | radial | horizontal | vertical | Yes | - | Display mode of the progress indicator |
progress | number | Yes | - | Progress value (0 to 100) |
size | small | medium | large | No | medium | Size of the progress indicator |
- Base styling with Tailwind:
/* Radial Mode */ .radial-progress { @apply transform -rotate-90; } /* Horizontal Mode */ .horizontal-progress { @apply w-full bg-gray-200 rounded-lg overflow-hidden; } /* Vertical Mode */ .vertical-progress { @apply bg-gray-200 rounded-lg overflow-hidden; }
- Progress bar colors:
.progress-bar { @apply bg-primary-light-500 transition-all duration-300; }
- Three display modes: radial, horizontal, and vertical
- Smooth progress transitions
- Multiple size options
- Accessible markup
- Customizable styling
- Tailwind CSS for styling