ui.tsx

ui.tsx

基本信息

  • 类型: React 组件 (TSX)
  • 路径: src/components/book/elements/ui.tsx

功能描述

Collapsible Component

导出内容

  • <code>Collapsible</code> - 函数
  • <code>Callout</code> - 函数
  • <code>CopyableCode</code> - 函数
  • <code>Quiz</code> - 函数
  • <code>TryIt</code> - 函数
  • <code>NavButton</code> - 函数
  • <code>NavFooter</code> - 函数

依赖导入

  • react
  • next/link
  • next-intl
  • @/components/ui/button
  • @/lib/utils
  • lucide-react
  • @/components/prompts/run-prompt-button

Props/接口

interface CollapsibleProps {
title: string;
children: React.ReactNode;
defaultOpen?: boolean;
}

使用说明

在 JSX/TSX 中导入使用

← 返回目录