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
Attribute | Type | Description | Default |
---|---|---|---|
children | ReactNode | The content of the code. | - |
size | sm | md | lg | The size of the code. | sm |
color | default | primary | secondary | success | warning | danger | The color of the code. | default |
radius | none | sm | md | lg | full | The radius of the code. | sm |