Import Spoiler styles
mainBy default, spoiled injects a small <style> tag for content transitions. If you prefer to manage styles manually (e.g., via a bundler like Vite), import the unstyled version and the CSS file explicitly.
// Use the unstyled version
import { Spoiler } from "spoiled/no-css";
// Manually import styles for your bundler
import "spoiled/style.css";