Skip to main content
Version: Next

CodeBlock API

import { CodeBlock } from '@editora/ui-react';

Props​

PropTypeDescription
actionsReact.ReactNode
askeyof JSX.IntrinsicElements
childrenReact.ReactNode
codestring
descriptionReact.ReactNode
footerReact.ReactNode
languageReact.ReactNode
lineNumbersboolean
titleReact.ReactNode
wrapboolean

Also accepts the standard HTML and React props of the element it renders (className, style, id, aria-*, data-*, event handlers).