@hua-labs/ui
v1.1.0
bash
npm install @hua-labs/huatsx
import { Progress } from "@hua-labs/hua";65%
40%
default
success
warning
error
info
Processing...55%
sm
md
lg
0%
value | number | 0 | docs:components.progress.props.value |
max | number | 100 | docs:components.progress.props.max |
size | "sm" | "md" | "lg" | "md" | docs:components.progress.props.size |
variant | "default" | "success" | "warning" | "error" | "info" | "glass" | "default" | docs:components.progress.props.variant |
showValue | boolean | false | docs:components.progress.props.showValue |
animated | boolean | true | docs:components.progress.props.animated |
striped | boolean | false | docs:components.progress.props.striped |
label | string | - | docs:components.progress.props.label |
description | string | - | docs:components.progress.props.description |
docs:common.basicUsage
import { Progress } from '@hua-labs/hua';
// Basic progress bar
<Progress value={50} />
// With label and value display
<Progress value={75} label="Upload Progress" showValue />docs:components.progress.demo.variants
// Success variant
<Progress value={100} variant="success" />
// Warning variant
<Progress value={60} variant="warning" />
// Error variant
<Progress value={30} variant="error" />
// Glass variant (for overlays)
<Progress value={50} variant="glass" />docs:components.progress.demo.striped
// Striped pattern
<Progress value={70} striped />
// Striped with color
<Progress value={80} variant="info" striped />- •role: docs:components.progress.accessibility.role
- •aria-valuenow: docs:components.progress.accessibility.ariaValuenow
- •aria-valuemin/max: docs:components.progress.accessibility.ariaValueminmax
- •aria-labelledby: docs:components.progress.accessibility.ariaLabel