macOS JS behaviour

Classic controls

The Mac’s familiar controls: the push button with its hairline bezel and blue default, the round checkbox and radio, the pop-up button with its double chevron, the linear-well slider and the two-lobe round stepper.

Documentation

Real scenarios

The component as it is used in a product — not a specimen grid.

Classic controls

Every control works: the blue default answers to Enter anywhere in the panel, the pop-up opens a real menu, and the slider shows its value bubble on hover — all numbers in Persian digits.

DisplayScene «Studio» — unsaved changes

Actions
Visibility
Appearance
Brightness
۷۰٪
۷۰٪
Intensity
۱۲

Important props

Important props
Prop Type Default What it does
default-button accent 'blue' The default button is blue and answers to Enter; system blue #007AFF.
popup-button chevron 'up+down' A blue double chevron in the field’s trailing side.
stepper shape 'round' The round two-lobe stepper; up/down with a hairline between.

Snippet

<button class="mcctl-push" data-default>ادامه</button>
<label class="mcctl-check"><input type="checkbox"><i></i> به‌خاطرسپاری</label>
<div class="mcctl-popup">صحنهٔ نمایش <b>⌄⌃</b></div>
<div class="mcctl-stepper"><button>▲</button><button>▼</button></div>

<style>
.mcctl-push { block-size: 28px; padding-inline: 14px; border-radius: 6px;
              background: #fff; box-shadow: 0 .5px 1.5px #00000033, 0 0 0 .5px #00000026; }
.mcctl-push[data-default] { background: #007AFF; color: #fff; }
.mcctl-check i { inline-size: 14px; aspect-ratio: 1; border-radius: 50%;
                 box-shadow: 0 1px 2px #00000026, inset 0 0 0 .5px #00000040; background: #fff; }
.mcctl-check input:checked + i { background: #007AFF center/9px no-repeat url(check.svg); }
</style>