Reveal
Hide content behind a card flip, reveal it on click.
Overview
Wrap any content in Reveal to hide it until clicked. It flips like a card to uncover what's underneath — axis is picked automatically based on the content shape (landscape flips top-to-bottom, portrait flips left-to-right).
Installation
pnpm dlx shadcn@latest add @slide-cn/revealnpx shadcn@latest add @slide-cn/revealyarn dlx shadcn@latest add @slide-cn/revealbunx --bun shadcn@latest add @slide-cn/revealDemo
Click on the card below to reveal its content
Usage
<Reveal>
This content will be hidden until clicked
</Reveal>Reference
Prop
Type