BlockDex

Components

Registries

Free blocks

Method

BlockDex

Components

Registries

Free blocks

Method

Open API

BlockDex

Components

Registries

Free blocks

Method

Open API

Components/@nordaun/ui/audio

Audio

nordaun-ui/audio
FreeBlock

An audio playback with extendable control modules already included such as volume and speed.

Live preview

live · rendered by the registry
Rendered by @nordaun/ui on their own page — this is the component running, not a screenshot of it.

Install it

npx shadcn@latest add https://ui.nordaun.com/r/audio.json

Source

src/components/ui/audio.tsxui.nordaun.com/r/audio.json · first 6 KB
1"use client";
2
3import { MenuTrigger } from "@base-ui/react";
4import * as React from "react";
5
6import { Button } from "@/components/ui/button";
7import {
8 DropdownMenu,
9 DropdownMenuContent,
10 DropdownMenuItem,
11 DropdownMenuTrigger,
12} from "@/components/ui/dropdown-menu";
13import { Slider } from "@/components/ui/slider";
14import { cn } from "@/lib/utils";
15import {
16 Check,
17 Gauge,
18 Pause,
19 Play,
20 Repeat,
21 Repeat1,
22 Volume,
23 Volume1,
24 Volume2,
25 VolumeX,
26} from "lucide-react";
27
28declare global {
29 interface Window {
30 webkitAudioContext: typeof AudioContext;
31 }
32}
33
34type AudioContext = {
35 audioRef: React.RefObject<HTMLAudioElement | null>;
36 containerRef: React.RefObject<HTMLDivElement | null>;
37 analyserRef: React.RefObject<AnalyserNode | null>;
38 graphRef: React.RefObject<globalThis.AudioContext | null>;
39 paused: boolean;
40 setPaused: React.Dispatch<React.SetStateAction<boolean>>;
41 progress: number;
42 setProgress: React.Dispatch<React.SetStateAction<number>>;
43 volume: number;
44 setVolume: React.Dispatch<React.SetStateAction<number>>;
45 muted: boolean;
46 setMuted: React.Dispatch<React.SetStateAction<boolean>>;
47 loop: boolean;
48 setLoop: React.Dispatch<React.SetStateAction<boolean>>;
49 playbackRate: number;
50 setPlaybackRate: React.Dispatch<React.SetStateAction<number>>;
51 duration: number;
52 setDuration: React.Dispatch<React.SetStateAction<number>>;
53 currentTime: number;
54 setCurrentTime: React.Dispatch<React.SetStateAction<number>>;
55};
56
57const DefaultAudioContext: AudioContext = {
58 audioRef: { current: null },
59 containerRef: { current: null },
60 analyserRef: { current: null },
61 graphRef: { current: null },
62 paused: true,
63 setPaused: () => {},
64 progress: 0,
65 setProgress: () => {},
66 volume: 1,
67 setVolume: () => {},
68 muted: false,
69 setMuted: () => {},
70 loop: false,
71 setLoop: () => {},
72 playbackRate: 1,
73 setPlaybackRate: () => {},
74 duration: 0,
75 setDuration: () => {},
76 currentTime: 0,
77 setCurrentTime: () => {},
78};
79
80if (typeof window !== "undefined") {
81 const _error = console.error.bind(console);
82 console.error = (...args) => {
83 if (typeof args[0] === "string" && args[0].includes("script")) return;
84 _error(...args);
85 };
86}
87
88const WaveformCache = new WeakMap<
89 HTMLAudioElement,
90 { ctx: globalThis.AudioContext; analyser: AnalyserNode }
91>();
92
93const Context = React.createContext<AudioContext>(DefaultAudioContext);
94
95// … truncated

What it pulls in

npm packages

  • lucide-react

Other registry items

  • button
  • dropdown-menu
  • slider

Files it writes

  • src/components/ui/audio.tsx

Facts

Registry
@nordaun/ui
Type
registry:block
Access
Free
Files written
1
Licence
MIT
In the index
at or before 2026-08-06
Last confirmed
today

Go to the source

Docs on @nordaun/ui ui.nordaun.com nordaun/ui on GitHub Raw registry item This item as JSON

More from @nordaun/ui

All 8 items
Same registry, same kind — the ones you would have found next
ComponentRegistryKindAccessInstallsCommand
Filefile@nordaun/uiBlocksFree1 dep · 3 files
Flagflag@nordaun/uiBlocksFreeno deps · 2 files
Loadingloading@nordaun/uiBlocksFreeno deps
Mapmap@nordaun/uiBlocksFree2 deps · 2 files
Passwordpassword@nordaun/uiBlocksFree1 dep
Phonephone@nordaun/uiBlocksFree2 deps · 3 files
Videovideo@nordaun/uiBlocksFree1 dep · 2 files

Also from Kynth Studios

Built for the same person as BlockDex

SkillWorks

Claude Code skills and plugins, scored

skillworks.kynth.studio

RuleStack

AGENTS.md gallery and agent-config comparison

rulestack.kynth.studio

ToolDrift

What the AI coding tools changed last night

tooldrift.kynth.studio

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex

The studio list

One product, taken apart, once a month

Kynth Studios pulls one shipped product open every month — what it does, what it cost to build, what the pipeline behind it looks like, and what the numbers did. One email a month, nothing in between.

Double opt-in — we send one confirmation link and nothing else until you click it.

BlockDex

Built by

Kynth Studios

the studio behind SkillWorks, RuleStack and ToolDrift

part of Toolproof, the measurement layer for AI agent tooling

Index

Components
Registries
Method
Open API

Guides

shadcn component libraries
Best shadcn registries
Free shadcn blocks

Reference

Corpus counts
Crawl health
hello@kynth.studio
Privacy
Terms

© 2026 BlockDex. A Kynth Studios product. Changelog

BlockDex