function createCode
createCode(
text: string,
props?: CodeProps
): string

Create inline code HTML string

Examples

Example 1

const html = createCode('npm install');

Parameters

text: string

Code content

optional
props: CodeProps

Code configuration

Return Type

string

HTML string

Usage

import { createCode } from ".";