react-seekbar
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

react-seekbar

UI component for selecting values by dragging a bar

Preview

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} />;
}

Dependents (0)

Package Sidebar

Install

npm i react-seekbar

Weekly Downloads

17

Version

0.1.4

License

MIT

Unpacked Size

87.3 kB

Total Files

7

Last publish

Collaborators

  • kangju2000