Honeydeck Docs
Components

RevealWith

RevealWith documentation for Honeydeck.

RevealWith

Use <RevealWith> when content should appear at the same timeline step as a named <Reveal> or any existing numeric slide step. It never adds a new step.

import { Reveal, RevealWith } from '@honeydeck/honeydeck'

<Reveal name="intro">Intro appears first</Reveal>
<RevealWith target="intro">This appears with the intro reveal</RevealWith>

```ts {1|2|3}
const answer = 42
console.log(answer)
```

<RevealWith at={2}>This appears with step 2</RevealWith>

Props

PropTypeDefaultDescription
targetstringSame-slide <Reveal name="..."> target. Must be a literal non-empty string. Use exactly one of target or at.
atnumberresolved/injectedExisting 1-based slide-local timeline step. Must be a literal positive integer when authored. Use exactly one of target or at.
childrenReactNodeContent to reveal with the target step.
classNamestringCustom class for styling or transitions.
as`"div""span"`injected

Behavior

  • RevealWith is cumulative like Reveal: once visible, it stays visible.
  • target supports forward references to named reveals later on the same slide.
  • at can target any existing slide step, including a RevealGroup item, code highlight, Magic Code state, or TimelineSteps state.
  • Hidden content reserves layout space and uses the same fade/future-preview behavior as Reveal.
  • Invalid targets, duplicate reveal names, non-literal values, and out-of-range numeric steps are build errors.

See Steps and reveals for timeline ordering examples.

On this page