bash
npm install @hua-labs/huatsx
import { ScrollProgress } from "@hua-labs/hua";:
gradient
primary
height | number | 2 | Progress bar height (px) |
color | "default" | "primary" | "secondary" | "gradient" | "gradient" | Progress bar color |
position | "top" | "bottom" | "top" | Display position |
showPercentage | boolean | false | Show percentage badge |
animated | boolean | true | Enable smooth animation |
Code Examples
docs:common.basicUsagetsx
1import { ScrollProgress } from '@hua-labs/hua';2 3// 페이지 상단에 그라디언트 진행률 바4<ScrollProgress />docs:components.scrollProgress.examples.customizationtsx
1<ScrollProgress2 position="bottom"3 color="primary"4 height={4}5 showPercentage6/>- •docs:components.scrollProgress.accessibility.nonInteractive: docs:components.scrollProgress.accessibility.nonInteractiveDesc