Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 13 additions & 0 deletions docs/features/monaco-editor.md
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,16 @@ console.log('Original text')
console.log('Modified text')
```
````

## Editor Height

By default, the Monaco editor has a fixed height based on the initial content. If you start with an empty or small code block and want the editor to automatically grow as you type more code, you can set `{height:'auto'}`.

````md
```ts {monaco} {height:'auto'}
// The editor will automatically grow as you type more code
console.log('Hello, World!')
```
````

You can also set a specific height using CSS units like `{height:'300px'}` or `{height:'100%'}`.
Loading