Files
agent-skills/skills/slidev/references/code-max-height.md
Jason Woltje f5792c40be feat: Complete fleet — 94 skills across 10+ domains
Pulled ALL skills from 15 source repositories:
- anthropics/skills: 16 (docs, design, MCP, testing)
- obra/superpowers: 14 (TDD, debugging, agents, planning)
- coreyhaines31/marketingskills: 25 (marketing, CRO, SEO, growth)
- better-auth/skills: 5 (auth patterns)
- vercel-labs/agent-skills: 5 (React, design, Vercel)
- antfu/skills: 16 (Vue, Vite, Vitest, pnpm, Turborepo)
- Plus 13 individual skills from various repos

Mosaic Stack is not limited to coding — the Orchestrator and
subagents serve coding, business, design, marketing, writing,
logistics, analysis, and more.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-16 16:27:42 -06:00

38 lines
657 B
Markdown

---
name: max-height
description: Set a fixed height for code blocks with scrolling for long code
---
# Code Block Max Height
Set a fixed height for code blocks with scrolling.
## Usage
````md
```ts {2|3|7|12}{maxHeight:'100px'}
function add(
a: Ref<number> | number,
b: Ref<number> | number
) {
return computed(() => unref(a) + unref(b))
}
/// ...as many lines as you want
const c = add(1, 2)
```
````
## With Line Highlighting Placeholder
Use `{*}` when you only need maxHeight:
````md
```ts {*}{maxHeight:'100px'}
// long code here
```
````
## Use Case
When code is too long to fit on one slide but you want to show it all with scrolling.