Valyro Русская версия

Detail Dial

Choose how deep an explanation goes: short, detailed or full. Free, MIT · Interactive blocks › Interactive explainers

One explanation at the depth the reader picks: a short answer, an explanation or a full breakdown, around a summary that stays put. The change is immediate (a fade only accompanies it), focus stays on the switcher and the new level's name is announced, not its whole text.

Installation

npx valyro-cli@latest add detail-dial
npx shadcn@latest add https://valyro.xyz/r/detail-dial.json
npm install valyro-ui

import 'valyro-ui/styles.css';
import { DetailDial } from 'valyro-ui';

Props

PropTypeDefault
levels *DetailLevel[]Levels from the least to the most detailed, two to four. The texts are the author's: nothing is generated.
summaryReactNodeThe point that stays put above the changing text.
valuestringId of the shown level. An unknown or disabled id shows the summary and an error.
defaultValuestringInitial level when uncontrolled. Default: the first available.
onValueChange(id: string) => voidCalled with the new value when it changes.
orientation'horizontal' | 'vertical''horizontal'horizontal (default): a segmented control; vertical: a list of levels with their descriptions.
transition'none' | 'fade''fade'How the text changes: fade (default) or none. Never animates the height; reduced motion drops the fade.
labelsPartial<DetailDialLabels>Overrides for the built-in English text; keys left out keep their defaults.

Related components

  • Feature Hotspots — Numbered points on an image that open a note about each detail
  • Exploded Layers — Prepared image layers pulled apart with captions
  • Prediction Card — The reader guesses first, then sees the answer and the explanation
  • Version Scrubber — Step through prepared versions of a design with one slider
  • Page Minimap — Schematic map of a long page with the visible area
  • Peel Sticker — A sticker you peel back by its corner to reveal what is under it
  • Scratch Reveal — Scratch off a cover to reveal text or a picture
  • Tear-off Ticket — A ticket whose stub tears off along the perforation
  • Split-Flap Board — Mechanical departure board: only the changed characters flip
  • Swipe Action Card — Swipe a card sideways to reveal its actions
  • Sticker Board — A free composition of photos, stickers and notes to move and rotate
  • Lasso Select — Drag a rectangle to select a group of cards

Previous: Prediction Card · Next: Version Scrubber · All Interactive blocks