Code

Code is a component used to display inline code.


Installation

npx nextui-cli@latest add code
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

AttributeTypeDescriptionDefault
childrenReactNodeThe content of the code.-
sizesm | md | lgThe size of the code.sm
colordefault | primary | secondary | success | warning | dangerThe color of the code.default
radiusnone | sm | md | lg | fullThe radius of the code.sm