@ausbom/time-scrubber
TypeScript icon, indicating that this package has built-in type declarations

0.7.1 • Public • Published

@ausbom/time-scrubber

The TimeScrubber component provides a UI for playing back and scrubbing through a number of discrete time steps. It's primarily used to scrub through map layers.

Installation

npm install @ausbom/time-scrubber

Usage

import TimeScrubber from '@ausbom/time-scrubber'
import React from 'react'
;<TimeScrubber
  onChange={(timeStep: string) => {
    this.setState({
      activeStep: timeStep,
    })
  }}
  activeStep={this.state.activeStep}
  timeSteps={[
    {
      id: '1',
      displayLabel: '1 hour 15 minutes ago',
    },
    {
      id: '2',
      displayLabel: '1 hour ago',
    },
    {
      id: '3',
      displayLabel: '45 minutes ago',
    },
  ]}
/>

Readme

Keywords

none

Package Sidebar

Install

npm i @ausbom/time-scrubber

Weekly Downloads

22

Version

0.7.1

License

MIT

Unpacked Size

52.8 kB

Total Files

21

Last publish

Collaborators

  • shaid
  • bom-hawyangpeng
  • digitaldeveloper-bom
  • george-cheng-bom
  • pmurator-bom