Code
Code is a component used to display inline code.
Installation
nextui add code
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 |