Honeydeck Docs
Components

Reveal

Reveal documentation for Honeydeck.

Reveal

Use <Reveal> when content should appear at the next timeline step.

import { Reveal } from '@honeydeck/honeydeck'

<Reveal>Start with Markdown</Reveal>
<Reveal>Enhance with React</Reveal>
<Reveal>Export to PDF</Reveal>

Reveals are cumulative: once visible, they stay visible while you advance through the slide. Hidden reveal content reserves layout space, so the slide does not jump when the content appears.

Props

PropTypeDefaultDescription
childrenReactNodeContent to reveal.
namestringOptional slide-local target for RevealWith target="...". Must be a literal non-empty string.
classNamestringCustom class for styling or transitions.
atnumberinjectedTimeline step. Honeydeck injects this during compilation; author-authored values are build errors. Use RevealWith to sync with an existing step.
as"div" | "span"injectedWrapper element. Honeydeck injects this to keep valid MDX/HTML around block or inline content.

Behavior

  • Reveals fade in.
  • Hidden content uses visibility: hidden plus opacity: 0, not display: none.
  • Nested reveals are supported.
  • Inline reveals inside paragraphs render inline wrappers.
  • Optional name="..." creates a slide-local target for RevealWith.

See Steps and reveals for timeline ordering examples.

On this page