1.0.6 • Published 1 year ago

@slivername/play-time-bar v1.0.6

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

Usage

import PlayTimeBar from "@slivername/play-time-bar";

const Component = () => {
  const testTime = {
    startTime: dayjs(dayjs().format("YYYY-MM-DD HH:00:00")).subtract(6, "hour"),
    endTime: dayjs(dayjs().format("YYYY-MM-DD HH:00:00")).add(6, "hour"),
  };
  const [nowTime, setNowTime] = useState(dayjs().format("YYYY-MM-DD HH:mm:ss"));
  return (
    <div style={{ margin: "20px", width: "90%", height: "200px" }}>
      <PlayTimeBar
        nowTime={nowTime}
        timeDataList={[testTime]}
        onMouseMove={(time, isDown) => {
          if (isDown) {
            setNowTime(time);
          }
        }}
      />
    </div>
  );
};
1.0.6

1 year ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago

0.0.5

1 year ago

0.0.4

1 year ago

0.0.3

1 year ago

0.0.2

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago