Waveform

Displays a live signal as a moving trace, showing that a feed is running.

Configurations

Supported configurations for this component.

Configurations

4 examples
Bars
Line only
No centreline
Paused

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/••••••••••••

Light and dark both come with the install and follow the dark class on <html>, the shadcn dark mode setup (next-themes with attribute="class").

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 Pro components