Code block
CorePresent code with legible hierarchy and copy access.
pnpm dlx shadcn@latest add https://wui.alann.works/r/code-block.jsonAPI Reference
| Prop | Type | Default |
|---|---|---|
code* | string | required |
filename | string | — |
language | string | — |
maxLines | number | — |
Present code with legible hierarchy and copy access.
pnpm dlx shadcn@latest add https://wui.alann.works/r/code-block.json| Prop | Type | Default |
|---|---|---|
code* | string | required |
filename | string | — |
language | string | — |
maxLines | number | — |