Spoiler Component Test

2026-01-18
Updated: 2026-01-20
Table of Contents

Spoiler Component Test

This is a test page for the spoiler component with pixelated mosaic style!

Basic Usage

In .mdx file:

import { Spoiler } from '@/components/ui/spoiler'
 
// Block spoiler
<Spoiler variant="block">
  Hidden content here
</Spoiler>
 
// Inline spoiler
The answer is <Spoiler variant="inline">forty-two</Spoiler>.
 
// With default open state
<Spoiler variant="block" defaultOpen>
  This starts revealed
</Spoiler>

Block Spoiler

Inline Spoiler

The answer to the ultimate question of life, the universe, and everything is .

Code in Spoilers

You can hide code snippets:

Images in Spoilers

You can hide images with spoilers: