{ "$schema": "https://ui.shadcn.com/schema/registry-item.json", "name": "dither-image", "description": "Compound Next.js image figure with CSS Bayer dither via dither-plugin, partial reveal overlays, and typed tuning props", "dependencies": [ "dither-plugin" ], "files": [ { "path": "registry/default/ui/dither-image.tsx", "content": "\"use client\"\n\n/**\n * `DitherImage` — compound figure that applies a CSS-only Bayer dither effect\n * to an image via the `dither-plugin` Tailwind utility. Safari-compatible (no\n * SVG filters), fully static (no JS runtime cost), and respects all the\n * plugin's tunable CSS custom properties as typed props.\n *\n * ## Installation\n *\n * ```bash\n * bun add dither-plugin\n * # or: npm install dither-plugin\n * # or: pnpm add dither-plugin\n * # or: yarn add dither-plugin\n * ```\n *\n * Then register the plugin in your Tailwind v4 stylesheet (alongside\n * `tailwindcss`):\n *\n * ```css\n * @import \"tailwindcss\";\n * @import \"dither-plugin\";\n * ```\n *\n * ## Usage\n *\n * ```tsx\n * \n * \n * \n * \n * Apple wallpaper, dithered\n * \n * ```\n *\n * Partial dither (masked clean layer + optional `invertOnDark`):\n *\n * ```tsx\n * \n * \n * \n * \n * \n * \n * ```\n *\n * ## Notes\n *\n * - The dither class must live on a **wrapper** around the image. The plugin\n * paints the dot matrix via a `::after` pseudo-element, which `` /\n * `