With collapsedLines, a longer file shows its first lines and fades out above a button that shows the rest. A file only a few lines longer shows in full.
pnpm dlx shadcn@latest add "https://kinoui.com/r/code-block-4.json"