Skip to main content

Interface: CodeProps

Defined in: components/Code/Code.tsx:32

Props for the Code component.

Extends​

  • Omit<React.HTMLAttributes<HTMLElement>, "style" | "className">

Properties​

block?​

optional block?: boolean

Defined in: components/Code/Code.tsx:42

Render as a scrollable <pre> block (true) or an inline <code> run (false). A block gets a bordered surface and its own scroll; inline sits within the surrounding text.

Default​

false

children?​

optional children?: ReactNode

Defined in: components/Code/Code.tsx:49

The code content.

Overrides​

Omit.children


size?​

optional size?: CodeSize

Defined in: components/Code/Code.tsx:47

Monospace type step.

Default​

'sm'