1 slot open this monthBy the makers of shadcnregistryWe built shadcnregistry. Now we build your product.Book a callCheck availability
1 slot open this monthAI features?We build AI features into your product.Book a callCheck availability
1 slot open this month๐Ÿšจ Slop police๐Ÿšจ Slop police: we clean up vibe-coded apps.Report itReport your app
shadcnregistry
shadcnregistry
RegistryHealthInspect
Terms of ServicePrivacy Policy
  1. Registries
  2. mangacn
  3. Spoiler

Spoiler

component

Content hidden by a screentone, revealed on click. Block: the children stay in the layout but are inert and aria-hidden under a tone cover with a paper plate that names what is hidden ("Chapter 12 ending") and says "Tap to reveal"; the plate gets a tone shadow on hover, the cover has the ink focus ring and a pressed offset, and the content pops in on reveal with a Hide button to cover it again. Inline: a few words become an ink flat with transparent text, a paper inner line on hover, and the revealed words get a 2px underline. Controlled (revealed, onRevealedChange) or uncontrolled (defaultRevealed).

pnpm dlx shadcn@latest add "https://mangacn.romain-sonnet.fr/r/spoiler.json"
Premium blocks for shadcn/uiShadcnblocks.com ยท AffiliateExplore
  • cn
@components/manga/spoiler.tsx