Skip to content

Commit f6f3bf9

Browse files
docs: add hidePrompt/singleLine info to existing Prompt changelog entry
Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
1 parent 8851488 commit f6f3bf9

2 files changed

Lines changed: 4 additions & 13 deletions

File tree

fern/products/docs/pages/changelog/2026-04-27.mdx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,12 @@ tags: ["components", "ai", "configuration", "docs.yml"]
44

55
## Prompt component
66

7-
The new `<Prompt>` component displays an AI prompt card with a title, icon, copy button, and optional "Open in" action buttons. Add it to any page so readers can copy instructions or open them directly in Cursor, Claude, or ChatGPT.
7+
The `<Prompt>` component displays an AI prompt card with a title, icon, copy button, and optional "Open in" action buttons. Add it to any page so readers can copy instructions or open them directly in Cursor, Claude, or ChatGPT.
88

99
Use it in tutorials, quickstarts, migration guides, or any page where you want readers to hand off a task to an AI assistant — for example, scaffolding a project, generating an SDK, or applying a code change.
1010

11+
The component supports two display modes: `hidePrompt` hides the prompt body chip so only the title row with copy and open-in actions is shown, and `singleLine` truncates the body to a single line with an ellipsis. By default, prompt bodies wrap long lines and display up to five lines with vertical scrolling.
12+
1113
<div className="highlight-frame">
1214
<div className="highlight-frame-content">
1315
<Prompt

fern/products/docs/pages/changelog/2026-04-29.mdx

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
tags: ["seo", "configuration", "components"]
2+
tags: ["seo", "configuration"]
33
---
44

55
## Redesigned dynamic OG images
@@ -21,14 +21,3 @@ metadata:
2121
```
2222
2323
<Button intent="none" outlined rightIcon="arrow-right" href="/learn/docs/seo/setting-seo-metadata#dynamic-og-images">Read the docs</Button>
24-
25-
## Prompt component hidden body and single-line modes
26-
27-
The `<Prompt>` component supports two new display modes:
28-
29-
- **`hidePrompt`** hides the prompt body chip, showing only the title row with copy and open-in actions. Useful when the prompt is long and you want a summary-only card.
30-
- **`singleLine`** truncates the prompt body to a single line with an ellipsis, for compact inline previews.
31-
32-
The default behavior has also changed. Prompt bodies wrap long lines and display up to five lines with vertical scrolling, instead of truncating to a single line.
33-
34-
<Button intent="none" outlined rightIcon="arrow-right" href="/learn/docs/writing-content/components/prompt">Read the docs</Button>

0 commit comments

Comments
 (0)