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

Dot Keys

Cream plastic keys in dither, each with a worn dish where the thumb goes. The chosen one stays down; pressing another trips the latch and the one that was down springs back up with a bounce. A key can carry a lamp that lights while it's down. Underneath it's a radio group with arrow keys.

Needs: None. DOM and one small canvas.

Started from a tape recorder's keys

Customize

Props

PropTypeDefaultDescription
options{ value: string; label: string; hint?: string; lamp?: boolean }[]requiredThe keys. A hint sits under the label; a lamp lights while its key is down.
labelstringrequiredThe group's name for screen readers.
valuestring–The chosen value, when you hold it.
defaultValuestring–Chosen at first. The first key by default.
onChange(value: string) => void–Called with the new value.
keyWidthnumber84Each key's width in px.
tonestring"#ff6a2a"The lamp's colour.
classNamestring–Class on the root.
styleCSSProperties–Style on the root.
← Dot InstallDot Knob →