An open API service indexing awesome lists of open source software.

https://github.com/diogomoretti/react-snakke

🐍 Reading position indicator for React
https://github.com/diogomoretti/react-snakke

progress-bar react react-component

Last synced: about 1 year ago
JSON representation

🐍 Reading position indicator for React

Awesome Lists containing this project

README

          


React Snakke


npm JavaScript Style Guide

## Install

#### npm
```bash
npm install --save react-snakke
```

#### yarn
```bash
yarn add react-snakke
```

## Usage

#### default

```jsx
import React from 'react'

import Snakke from 'react-snakke'

export default function Example () {
return (

)
}
```

#### with custom values

```jsx
import React from 'react'

import Snakke from 'react-snakke'

export default function Example () {
return (

)
}
```

## 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](https://github.com/diogomoretti)