HomeLabHire Me
ml-ui111 components

Get started

IntroductionInstallation

UI

Dots

Dot AccordionDot CalendarDot CheckboxDot CodeDot CommandDot ContentsDot CountdownDot CrossingDot FuseDot GaugeDot InstallDot KnobDot LogosDot MenuDot PaginationDot PasswordDot Price RangeDot PricingDot ProgressDot QueueDot RatingDot Reading ProgressDot SelectDot SignupDot SliderDot StatusDot StepperDot SwitchDot TabsDot ToastDot TooltipFlip-Dot CounterLED Marquee

Dither

Dither AvatarDither BannerDither CompareDither GlobeDither PortraitDither SkeletonDither TrailDither UploadDot CookiesDot DialogDot KeysDot ReceiptDot VariantsLenticular Card

More

Pollen TrailSplit-FlapTheme Toggle

Text

Dither RotatorDot TypeEnigma TextInk Print

Data viz

Dots

Contribution FieldDot BarsDot ChartDot Waffle

Dither

Dither DensityDither MapDither Stack

Media

Dots

Dot EqualizerDot WaveformVoice Note

Dither

Dither Scrubber

AI

Agent StepsAnswer VersionsCitation ChipConfidence GlassContext MeterDiffusion ImageDiffusion TextDither MaskDoc ReaderDot DictationGenerate ButtonGhost TextModel PickerPrompt BarResponse ActionsRevising TextSpoken ReplyThinking OrbThinking TraceToken MeterToken StreamWord Alternatives

Useful

Arrival TimeBest ShotCareer LineForgiving SearchGesture PadHeard AsHonest PinImage PaletteLikeness GridNear Miss SearchRain DropsSoft CorrectSpending SortSticker LiftTaste Ledger

Backgrounds

ButterfliesDandelionsDuck PondFirefliesKoi PondLight WellMarigoldsTrain WindowWhite Blossom

ml-ui / Media

Dot Equalizer

Give it an audio or video element on the page, or a stream like the microphone. Bands are spaced the way we hear pitch, low on the left; each bar jumps up with the sound and sinks slowly, and a peak dot holds at the top for a moment before dropping. At rest the panel is its unlit dots, and it sleeps when nothing is playing or it's out of view. An element is still heard through the speakers; a microphone is only listened to.

Needs: None. Web Audio's analyser, in the browser.

Customize

Props

PropTypeDefaultDescription
sourceHTMLMediaElement | MediaStream | nullrequiredWhat to listen to: an audio or video element, or a stream such as the microphone.
bandsnumber24How many bands, low to high.
heightnumber96Height in px. It fills its container's width.
tonestring–The bars' colour. The page's accent by default.
pitchnumber3Size of one dot in px.
labelstring"Sound levels"What it's showing, for screen readers.
classNamestring–Class on the meter.
styleCSSProperties–Style on the meter.
← Dither ScrubberDot Waveform →