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 Checkbox

Ticking it fills the box with the accent and draws the tick across it a dot at a time, the way a pen would; unticking dissolves the fill away. A part-ticked box, standing for a group only some of which are ticked, shows a dash. A real checkbox lies under it, so Space, screen readers and the label all work as usual.

Needs: None. Canvas 2D over a native checkbox.

Customize

Props

PropTypeDefaultDescription
checkedboolean–Ticked or not. Leave unset to let it keep its own.
defaultCheckedbooleanfalseTicked at first, when checked isn't set.
indeterminatebooleanfalsePart-ticked: shows a dash.
onChange(checked: boolean) => void–Called with the new state.
childrenReactNode–The label beside the box.
tonestring–The box's colour when ticked. The page's accent by default.
pitchnumber3Size of one dot in px. The box is 11 dots square.
disabledbooleanfalseCan't be changed.
labelstring–For screen readers, when there's no visible label.
classNamestring–Class on the checkbox's label.
styleCSSProperties–Style on the checkbox's label.
← Dot CalendarDot Code →