Package

Canvas React Timeline Editor & Component

Batteries-included React timeline editing path.

Start here when you want the common Canvas Timeline experience without choosing lower-level package boundaries up front.

Installation

pnpm
pnpm add @techsquidtv/canvas-timeline

When to use it

You are building a standard React timeline editor and want an integrated, batteries-included starter experience.
You prefer importing the core engine, state managers, DOM interaction controls, and canvas renderers from a single wrapper package.
You want one import path before splitting your integration across focused package entrypoints.

Common imports

Common editor path
import {
CanvasRenderer,
Timeline,
TimelineEngine,
TimelineProvider,
fromSeconds,
} from '@techsquidtv/canvas-timeline';
Shadcn-compatible styles
import '@techsquidtv/canvas-timeline/styles.css';
Headless styling path
import '@techsquidtv/canvas-timeline/base.css';
Focused subpath imports
import { TimelineEngine } from '@techsquidtv/canvas-timeline/core';
import { TimelineProvider } from '@techsquidtv/canvas-timeline/react';
import { CanvasRenderer } from '@techsquidtv/canvas-timeline/renderer';

Usage notes

  • Provides a single batteries-included entry point containing core, React, renderer, and utils APIs, simplifying initial installation and setup.
  • Supports subpath imports (e.g., `@techsquidtv/canvas-timeline/core`) to allow incremental refinement toward focused package boundaries without modifying dependencies.
  • Use `styles.css` when your app defines shadcn-compatible semantic tokens; it themes the reusable timeline surface, interaction chrome, scrollbars, and optional shell/control utilities while product chrome remains application CSS.

API Surface

Explore the key components, hooks, and classes exported by this package. Click any symbol to view its full TSDoc parameter signatures.

Subpath Imports

Import specific files or modules directly to reduce bundle size or target specialized package layers.

Import PathDescription
@techsquidtv/canvas-timelineCommon public APIs from core, React, renderer, and utils.
@techsquidtv/canvas-timeline/coreCore state and editing engine re-exports.
@techsquidtv/canvas-timeline/reactReact provider, hooks, and components re-exports.
@techsquidtv/canvas-timeline/html-mediaNative single-element HTML media/audio timeline media adapter re-export.
@techsquidtv/canvas-timeline/rendererCanvas renderer and theme re-exports.
@techsquidtv/canvas-timeline/utilsRational time and shared math re-exports.
@techsquidtv/canvas-timeline/base.cssStructural interaction geometry without default visuals.
@techsquidtv/canvas-timeline/theme.cssShadcn-token-driven visual theme for interaction chrome and timeline tokens.
@techsquidtv/canvas-timeline/styles.cssStructural styles plus shadcn-compatible interaction chrome.