Park UI

Code

A typography component for displaying inline code snippets.

console.log("Hello, world!")

Installation

Usage

Examples

Sizes

Use the size prop to change the size of the code component.

console.log()console.log()console.log()

Variants

Use the variant prop to change the appearance of the code component.

console.log()console.log()console.log()console.log()console.log()

Colors

Use the colorPalette prop to change the color scheme of the component.

console.log()console.log()console.log()console.log()
console.log()console.log()console.log()console.log()
console.log()console.log()console.log()console.log()
console.log()console.log()console.log()console.log()

Props

PropDefaultType
variant'subtle'
'solid' | 'surface' | 'subtle' | 'outline' | 'plain'
size'md'
'xs' | 'sm' | 'md' | 'lg'