Code

Code is a component used to display inline code.


Installation

nextui add code
No need to install this package 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