npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@molecule/app-feature-transport-bar-react

v1.0.2

Published

Transport-control bar (play / pause / stop / record / skip / loop) used by music-daw + video-editor for editor playback control

Readme

@molecule/app-feature-transport-bar-react

Auto-generated, AI-first package reference for the molecule.dev ecosystem. It is written to be read by coding agents as much as by people, and is generated from this package's source — edit src/index.ts JSDoc, not this file.

Transport bar — play / pause / stop / record / skip / loop controls for editor playback (music DAW, video editor, animation tool).

Exports <TransportBar>. All styling routes through getClassMap() and all button labels translate via the companion @molecule/app-locales-feature-transport-bar locale bond.

Quick Start

import { TransportBar } from '@molecule/app-feature-transport-bar-react'

;<TransportBar
  isPlaying={state.playing}
  isRecording={state.recording}
  loop={state.loop}
  onPlayToggle={() => setPlaying(!state.playing)}
  onStop={() => stop()}
  onSkipBack={() => seek(0)}
  onSkipForward={() => seek(end)}
  onRecordToggle={() => setRecording(!state.recording)}
  onLoopToggle={() => setLoop(!state.loop)}
  timeDisplay={`${fmt(state.t)} / ${fmt(state.duration)}`}
/>

Type

feature

Installation

npm install @molecule/app-feature-transport-bar-react @molecule/app-react @molecule/app-ui react
npm install -D @types/react

API

Interfaces

TransportBarProps

Transport-bar component props.

interface TransportBarProps {
  /**
   * Whether playback is currently running. Drives the play / pause toggle
   * button's icon, label, and `aria-pressed` state.
   */
  isPlaying: boolean
  /**
   * Whether recording is currently armed / running. Drives the record
   * button's icon, label, and `aria-pressed` state. The record button
   * itself renders only when `onRecordToggle` is provided.
   */
  isRecording?: boolean
  /**
   * Whether the stop button is enabled. When `false`, the button still
   * renders but is `disabled` (use this to communicate that there is
   * nothing to stop). Defaults to `true` when omitted.
   */
  canStop?: boolean
  /**
   * Whether the skip-back / skip-forward buttons are enabled. When
   * `false`, the buttons still render but are `disabled`. Defaults to
   * `true` when omitted. Skip buttons only render when their respective
   * `onSkipBack` / `onSkipForward` handlers are provided.
   */
  canSkip?: boolean
  /**
   * Whether loop playback is currently engaged. Drives the loop
   * button's `aria-pressed` state. The loop button itself renders only
   * when `onLoopToggle` is provided.
   */
  loop?: boolean
  /** Toggle play / pause. Required. */
  onPlayToggle: () => void
  /** Stop playback (resets to start). Required. */
  onStop: () => void
  /** Skip to the previous marker / start of clip. Optional. */
  onSkipBack?: () => void
  /** Skip to the next marker / end of clip. Optional. */
  onSkipForward?: () => void
  /** Toggle record mode. Optional — when omitted no record button is rendered. */
  onRecordToggle?: () => void
  /** Toggle loop mode. Optional — when omitted no loop button is rendered. */
  onLoopToggle?: () => void
  /**
   * Optional time-display slot rendered alongside the controls (typical
   * use: `current / total` time). Takes precedence over `children`.
   */
  timeDisplay?: ReactNode
  /**
   * Optional time-display slot. Equivalent to `timeDisplay` — provided
   * for ergonomic JSX nesting. Ignored when `timeDisplay` is set.
   */
  children?: ReactNode
  /** Extra classes merged onto the root element. */
  className?: string
}

Functions

TransportBar(props)

Transport-control bar (play / pause / stop / record / skip / loop) used by music-daw + video-editor surfaces for editor playback control. Renders a horizontal bar of buttons with semantic icons and fully translated aria-labels; an optional time-display slot lets callers render the current playhead position / total duration without coupling the bar to any specific time-format library.

All styling routes through getClassMap() (no Tailwind / raw class names). All user-visible text (button labels) routes through t() via the companion @molecule/app-locales-feature-transport-bar locale bond.

function TransportBar(props: TransportBarProps): JSX.Element
  • props — Component props.

Returns: The transport-bar element.

Injection Notes

Requirements

Peer dependencies:

  • @molecule/app-react ^1.0.1
  • @molecule/app-ui ^1.0.1
  • react ^18.0.0 || ^19.0.0

Runtime Dependencies

  • @molecule/app-react
  • @molecule/app-ui
  • react

Translations

Translation strings are provided by @molecule/app-locales-feature-transport-bar.