Code 组件用于显示内联代码。
上述命令仅用于单独安装。如果 @heroui/react 已全局安装,则可以跳过此步骤。
@heroui/react
children
ReactNode
size
sm | md | lg
"sm"
color
default | primary | secondary | success | warning | danger
"default"
radius
none | sm | md | lg | full
在此页
更快地 交付使用精美的组件
探索 HeroUI 提供的 210+ 个精美组件