Popcase

由 Yet Another React Lightbox 驱动的原生 EmDash 图片查看器。

插件

Popcase

由 Yet Another React Lightbox 驱动的原生 EmDash 图片查看器。

  • 分类: 媒体
  • 状态: 可用
  • 版本: 0.3.1
  • 价格: 未知
  • 来源: npm 软件包
  • 安装方式: npm 原生集成
  • 核实日期: 2026-11-01

由 Yet Another React Lightbox 驱动的原生 EmDash 图片查看器。

安装

从 npm 安装该软件包:

npm install emdash-popcase

在 Astro 配置中注册该插件:

import { defineConfig } from "astro/config";
import react from "@astrojs/react";
import emdash from "emdash/astro";
import { popcase, popcaseIntegration } from "emdash-popcase";

export default defineConfig({
  integrations: [
    react(),
    popcaseIntegration(),
    emdash({
      // Keep your existing database and storage configuration.
      plugins: [popcase()],
    }),
  ],
});

详细信息