Code

行内代码:浅色填充上的 Geist Mono 13,在正文中使用 6 像素圆角。

查看源码

Set KAESO_MASTER_KEY, then call POST /v1/responses with the model gpt-5-mini.

import { Code } from "@logicplanes/kaeso-ui";

属性

  • flow
    "cell" | "text" | "box" = box

    text 用于正文中的长代码,使其随句子换行,而不是作为一个整体跳到新的一行;cell 用于表格单元格中的同类情况。默认的整体框在宽于所在行时会在框内换行。

  • shape
    "auto" | "pill" | "rounded" = auto

    auto(默认)和 rounded 保持 4 的圆角,使句子中的代码不会混用形状;单独出现的一个词用 pill,例如表格单元格中的模型名称。