@acodez/progressbar 中文文档教程

发布于 3年前 浏览 22 更新于 3年前

@acodez/progressbar

npm_version license

React 进度条有很多定制。



Installation

npm install @acodez/progressbar

Props API

PropertyTypeRequiredDescription
progressstringyesprogress value, example 30
colorstringnocolor scheme, choose from primary, secondary, warning, success, danger, info, dark, light
typestringnochoose from normal, striped, animate, animate-striped
sizestringnosize (height) of progressbar, choose from xs, sm, md, lg
ShowProgressCountstringnowhether count need to show near to bar
CountPositionstringnoprogress count position, choose from overlay, right, left
cornerstringnoprogressbar border radius, square or rounded

Usage

import Progressbar from "@acodez/progressbar";

Basic

<Progressbar progress="70" />

动画进度条< /strong>

<Progressbar progress="70" type="animate" />

条纹进度条

<Progressbar progress="70" type="striped" />

条纹动画 ```jsx

**With progress text** 

jsx

**Text position to right** 

jsx

**Changing the color theme** 

jsx

**Changing the size - height** 

jsx

**Changing the border radius** 

jsx```

@acodez/progressbar

npm_version license

React progressbar with many customizations.



Installation

npm install @acodez/progressbar

Props API

PropertyTypeRequiredDescription
progressstringyesprogress value, example 30
colorstringnocolor scheme, choose from primary, secondary, warning, success, danger, info, dark, light
typestringnochoose from normal, striped, animate, animate-striped
sizestringnosize (height) of progressbar, choose from xs, sm, md, lg
ShowProgressCountstringnowhether count need to show near to bar
CountPositionstringnoprogress count position, choose from overlay, right, left
cornerstringnoprogressbar border radius, square or rounded

Usage

import Progressbar from "@acodez/progressbar";

Basic

<Progressbar progress="70" />

Animating progressbar

<Progressbar progress="70" type="animate" />

Striped progressbar

<Progressbar progress="70" type="striped" />

Striped with animation ```jsx

**With progress text** 

jsx

**Text position to right** 

jsx

**Changing the color theme** 

jsx

**Changing the size - height** 

jsx

**Changing the border radius** 

jsx```

    我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
    原文