New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-timeline-trackpad

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-timeline-trackpad

A React component for timeline-based video/audio editing with drag-and-drop functionality

latest
npmnpm
Version
1.0.1
Version published
Maintainers
1
Created
Source

React Timeline Trackpad

A React component for timeline-based video/audio editing with drag-and-drop functionality.

Installation

npm install react-timeline-trackpad

Peer Dependencies

This package requires the following peer dependencies:

npm install react react-dom @dnd-kit/core@^6.3.1 @dnd-kit/sortable@^10.0.0 @dnd-kit/utilities@^3.2.0 uuid@^9.0.0

Usage

Basic Usage

import { TimelineTrackpad } from 'react-timeline-trackpad';
import 'react-timeline-trackpad/styles.css';

function App() {
  return <TimelineTrackpad />;
}

With Theme

import { TimelineTrackpad, type Theme } from 'react-timeline-trackpad';
import 'react-timeline-trackpad/styles.css';

function App() {
  const [theme, setTheme] = useState<Theme>('dark');
  
  return (
    <>
      <button onClick={() => setTheme(theme === 'dark' ? 'light' : 'dark')}>
        Toggle Theme
      </button>
      <TimelineTrackpad theme={theme} />
    </>
  );
}

Features

  • Drag and drop clips between tracks
  • Resize clips by dragging handles
  • Snap to grid for precise positioning
  • Support for audio, video, and image clips
  • Audio waveform visualization
  • Video thumbnail preview

Types

All types are exported from the package:

import type { 
  Clip, 
  TrackData, 
  Placeholder, 
  Emitter,
  Theme,
  ThemeColors,
  TimelineTrackpadProps
} from 'react-timeline-trackpad';

Themes

The component supports both light and dark themes:

  • Dark theme (default): Modern dark interface with blue accents
  • Light theme: Clean light interface with subtle shadows

Pass the theme prop to TimelineTrackpad to switch between themes:

  • theme="dark" - Dark theme
  • theme="light" - Light theme

The theme colors are defined in CSS variables and can be customized by overriding the CSS variables in your stylesheet.

License

MIT

Keywords

react

FAQs

Package last updated on 11 Nov 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts