We're actively working on new components and features. Stay tuned! Head over to our GitHub to see what's coming next.
Code is used to display inline code snippets with appropriate formatting and semantic meaning.
console.log('This is some code')
import Code from "@radui/ui/Code" const CodeExample = () => ( <div> <Code>console.log('This is some code')</Code> </div> )
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 | '' |