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
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 |