Interface: CodeProps
Defined in: components/Code/Code.tsx:32
Props for the Code component.
Extends
Omit<React.HTMLAttributes<HTMLElement>,"style"|"className">
Properties
block?
optionalblock?: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?
optionalchildren?:ReactNode
Defined in: components/Code/Code.tsx:49
The code content.
Overrides
Omit.children
size?
optionalsize?:CodeSize
Defined in: components/Code/Code.tsx:47
Monospace type step.
Default
'sm'