项目
在 GitHub 查看
diogomoretti/react-snakke
关于
🐍 Reading position indicator for React
网站与应用开发实测星标增长
- 24小时
- 0
- 7天
- 0
- 15天
- 0
- 1个月
- 正在收集历史
各周期内的星标净变化,周期相互重叠,并非每日新增。缺失的测量保持空白。星标代表关注度,不代表软件质量。
README.md
原文
Install
npm
npm install react-snakke
yarn
yarn add react-snakke
pnpm
pnpm install react-snakke
Usage
default
import React from 'react'
import Snakke from 'react-snakke'
export default function Example () {
return (
<Snakke />
)
}
with custom values
import React from 'react'
import Snakke from 'react-snakke'
export default function Example () {
return (
<Snakke
color='#f0f'
top='20px'
height='3px'
opacity='.8'
zIndex='10'
shadow
/>
)
}
Options / Props
| Prop | Type | Default value | Required | Description |
|---|---|---|---|---|
| color | String | #000 | false | Set progress bar background color |
| height | String | 5px | false | Set height of progress bar |
| opacity | String | 1 | false | Set opacity from 0 to 1 |
| top | String | 0 | false | Set distance from top of page |
| zIndex | String | 9999 | false | Set value based on css z-index property |
| shadow | Boolean | false | false | Progress bar with or without shadow |
License
MIT © Diogo Moretti
探索相关项目
加载中…