The display settings: paper, the volume dial, sound and motion, for the footer and the nav sheet. A site that keeps
sound elsewhere passes sound={false}; extra dials (the docs' colourway dial) go in as children, after the volume
dial. These docs print their own footer this way.
Example#
Usage#
Visitor controls are the display settings in one place: the paper, the volume dial, sound and motion. The footer and the phone menu print them, so every setting is reachable from every page.
- Contents.
ThemeToggle(segmented),VolumeDial(inline),SoundToggle(labelled) andMotionToggle. - No sound?
sound={false}leaves the sound key out on sites that make none (these docs). - Extra dials go in
children, such as these docs' colourway dial.
Anatomy#
- PaperBone or Night.
.mk-theme-toggle, .mk-segmented-control - Volume dialQuiet to Rave.
.mk-volume-dial - SoundOff until turned on.
.mk-sound-toggle - MotionHolds loops still.
.mk-motion-toggle
Volume#
Reading layer: identical at every volume.
Quiet
Studio
Press
Rave
Content#
- The group is named "Display settings"; every control inside keeps its own literal name.
Do and don't#
Do
Don't
Display settings scattered: the paper in the navbar, the volume on the home page only, sound on a settings page.
Accessibility#
- A named section ("Display settings"); each control brings its own keyboard behaviour.
- Every choice persists through
PrefsScriptbefore the first paint.
Props#
| Prop | Type | Default | Description |
|---|---|---|---|
label | string | "Display settings" | The section's name (default "Display settings"). |
sound | boolean | true | The labelled sound key (default true). |
children | ReactNode | none | Extra dials, after the volume dial (e.g. a colourway dial). |
className | string | none |
Tokens#
System tokens (3)
Changelog#
Arrived in 0.1.0.
VisitorControlstakessound={false}and extra dials aschildren(DF-40). Read the whole entry- visitor-controls: the inline volume dial takes a line of its own width in
VisitorControls, so its four stops sit in a row on a desktop footer instead of shrinking into one narrow column beside the theme key (DF-51). In a narrow sheet it still wraps to its own line.
Sectionwith its plate andArtslot,Plate,VolumeScope,PageHero,SectionHead,Eyebrow,Card,LineCard,InfoPanel,Stack,Cluster,Grid,Container,Main,Ruleand theFittedLineclient fitter;Navbarwith theNavDisclosuremega panels,Footer,FooterMap,BuildStamp,SkipLink,ActionDockandVisitorControls; theTableparts,ComparisonTablewith the one-tier switcher,SpecStrip,Numeral,Stat,StatGroup,StatusChip,BadgeandScoreDial;ProsewithmdxComponents,Quote,CodeBlockwithCopyButton,Figure,ScreenshotFrameandPhoneFrame; and the brand: the three evolved 2 × 2 options inmarkGeometry(a Overprint by default, b Paper seam, c Key block) with the pixel-snappedpxmode and the one-ink seam variant,logoGeometrywith the 1x clear-space frame,Mark,Wordmark,Logo,MaxosMarkandLineBadge. Read the whole entry