Show source code in a standardized way. Want to display shell code snippets? try Snippet.
Basic inline codes.
Multi line code display.
Specify width manually, or other styles.
Specify the file name for the code block.
The classic design style with a line border instead of a background.
| Attribute | Description | Type | Accepted values | Default |
|---|---|---|---|---|
| block | show code in pre | boolean | - | false |
| name | text displayed at the top of the code block | string | - | - |
| classic | display with classic style | boolean | - | false |
| ... | native props | HTMLAttributes | 'className', ... | - |
Previous
Checkbox
Next
Collapse

