0.1.4 • Published 1 year ago

react-seekbar v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
1 year ago

Preview

npm.io

installation

  npm install react-seekbar
  
  yarn add react-seekbar

Usage

docs and example usage can be found here

import { useState } from 'react';
import { Seekbar } from 'react-seekbar';

export default function YourComponent() {
  const [position, setPosition] = useState(0);

  const handleSeek = (position) => {
    setPosition(position);
  };

  return <Seekbar position={position} duration={100000} onSeek={handleSeek} />;
}
0.1.4

1 year ago

0.1.3

1 year ago

0.1.2

1 year ago

0.1.1

1 year ago

0.1.0

1 year ago

0.0.1

1 year ago