Overview of audio/ui capabilities
mainaudio/ui is a component library designed for building audio interfaces in React applications. It is built on top of shadcn/ui and provides accessible, composable components that can be copied, pasted, and customized.
Available Features
Components
- Audio Player: A composable player featuring queue management, shuffle, repeat modes, and volume control.
- Controls: Low-level primitives including
Knob,Fader,XY Pad, andTransportcontrols. - Channel Strip: Layout patterns for mixer-style columns that integrate controls, labels, and readouts.
Library Core
- Audio Store: A state management solution powered by
Zustandfor audio playback, which includeslocalStoragepersistence. - HTML Audio: A core singleton used for loading and controlling HTML5 audio, featuring built-in retry logic and event handling.
Blocks
- Pre-assembled Patterns: Ready-to-use combinations of components, such as complete audio player or channel strip patterns, available in the component catalog.