Skip to main content
Version: Next

CodeSnippet API

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

Props​

PropTypeDescription
askeyof JSX.IntrinsicElements
blockboolean
childrenReact.ReactNode
codestring
sizekeyof typeof SIZE_STYLES
tonekeyof typeof TONE_STYLES

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