Show source code in a standardized way.
Basic inline codes.
Multi line code display.
Specify width manually, or other styles.
Out of range presentation.
Code.Props
Attribute | Description | Type | Accepted values | Default |
---|---|---|---|---|
block | show code in pre | boolean | - | false |
width | set CSS width | string | - | initial |
... | native props | HTMLAttributes | 'className', ... | - |