代码

代码是一个用于显示内联代码的组件。


安装

以上命令仅用于单独安装。如果已全局安装 @nextui-org/react ,则可以跳过此步骤。

导入

用法

尺寸

颜色

API

代码属性

属性类型默认值
children
ReactNode
size
sm | md | lg
"sm"
color
default | primary | secondary | success | warning | danger
"default"
radius
none | sm | md | lg | full
"sm"