Waveform

Live signal waveform. A fluid SVG of a morphing polyline over mirrored level bars and a dashed centreline, animating to signal an active feed and holding a static frame when paused or reduced-motion. One primary series ink; colour only when the wave itself is the live measurement.

Add to your project

One command adds this component to your project.

1

Run the following command. New project? Run npx shadcn@latest init first to set up Tailwind and path aliases.

npx shadcn@latest add @aicanvas/andromeda-waveform
2

For dark mode, add the dark class to your <html> element:

Optional
<html class="dark">

Props

Every prop this component accepts. Any other prop is forwarded to the underlying element.

PropTypeDefaultDescription
samplesnumber120Number of points sampled across the waveform.
speednumber0.6Animation time-scale multiplier.
amplitudenumber0.4Peak height as a fraction of the SVG height.
heightnumber120Fluid SVG height in pixels.
colorstringtokens.color.text.primaryPolyline stroke color only.
showBarsbooleantrueWhether to render mirrored level bars.
showCenterlinebooleantrueWhether to render the dashed centre reference.
pausedbooleanfalseWhether to hold the current or initial static frame.
classNamestring''Root element class name.
styleReact.CSSProperties{}Root element inline styles.

More Andromeda components