Code

Code is a component used to display inline code.


Installation

The above command is for individual installation only. You may skip this step if @nextui-org/react is already installed globally.

Import

Usage

Sizes

Colors

API

Code Props

PropTypeDefault
children
ReactNode
size
sm | md | lg
"sm"
color
default | primary | secondary | success | warning | danger
"default"
radius
none | sm | md | lg | full
"sm"