Code is used to display inline code snippets with appropriate formatting and semantic meaning.
console.log('This is some code')- Renders as semantic <code> HTML element
- Pre-styled for code snippets with proper font and background
- Supports custom colors and variants
- Helps maintain consistent code styling across your UI
A component for displaying inline code snippets using the semantic <code> HTML element.
| Prop | Type | Default |
|---|---|---|
children | ReactNode | -- |
customRootClass | string | '' |
variant | string | '' |
size | string | '' |
color | string | '' |