Skip to content

Code card

Logs or config: numbered lines with a copy button. diff: true colours lines starting with + and -.

2 samples, each at every size that draws differently, then in chat, in the light theme, and as a ring where it has a headline.

code · logs, medium size
Medium
code · logs, large size
Large
code · logs, in chat
In chat
code · logs, light theme
Light theme

Small draws the same as medium. Wide draws the same as medium. Tall draws the same as medium, so they aren't shown. Only the empty space changes.

code · diff, medium size
Medium
code · diff, large size
Large
code · diff, in chat
In chat
code · diff, light theme
Light theme

Small draws the same as medium. Wide draws the same as medium. Tall draws the same as medium, so they aren't shown. Only the empty space changes.

Every card also takes the fields all cards share.

FieldTypeWhat it does
type'code'
linesstring[]
diff?boolean

logs, config: diff colours lines starting + and -