Skip to content

Commit 6b39230

Browse files
docs: use TypeScript SDK example for prompt custom action variant
Co-Authored-By: Devin Logan <devinannlogan@gmail.com>
1 parent b01e73d commit 6b39230

2 files changed

Lines changed: 9 additions & 9 deletions

File tree

fern/products/docs/pages/changelog/2026-05-01.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ The `<Prompt>` component's `actions` prop now accepts custom action objects with
1414

1515
```jsx Markdown
1616
<Prompt
17-
title="Identify a houseplant"
17+
title="Generate a TypeScript SDK"
1818
actions={[
1919
"cursor",
20-
{ label: "Open in Plant ID", url: "https://example.com/plant-id?q={prompt}", icon: "leaf" }
20+
{ label: "Open in Perplexity", url: "https://www.perplexity.ai/search?q={prompt}", icon: "magnifying-glass" }
2121
]}
2222
>
23-
Given a photo of a houseplant, identify the species and list its top three care requirements (light, water, humidity).
23+
Generate a TypeScript SDK from my OpenAPI spec. Follow the [TypeScript SDK quickstart](https://buildwithfern.com/learn/sdks/generators/typescript/quickstart.md).
2424
</Prompt>
2525
```
2626

fern/products/docs/pages/component-library/default-components/prompt.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,26 +106,26 @@ Pass a `{ label, url, icon? }` object in `actions` to point at any AI tool. Cust
106106
<div className="highlight-frame">
107107
<div className="highlight-frame-content">
108108
<Prompt
109-
title="Identify a houseplant"
109+
title="Generate a TypeScript SDK"
110110
actions={[
111111
"cursor",
112-
{ label: "Open in Plant ID", url: "https://example.com/plant-id?q={prompt}", icon: "leaf" }
112+
{ label: "Open in Perplexity", url: "https://www.perplexity.ai/search?q={prompt}", icon: "magnifying-glass" }
113113
]}
114114
>
115-
Given a photo of a houseplant, identify the species and list its top three care requirements (light, water, humidity).
115+
Generate a TypeScript SDK from my OpenAPI spec. Follow the [TypeScript SDK quickstart](https://buildwithfern.com/learn/sdks/generators/typescript/quickstart.md).
116116
</Prompt>
117117
</div>
118118
</div>
119119
120120
```jsx Markdown
121121
<Prompt
122-
title="Identify a houseplant"
122+
title="Generate a TypeScript SDK"
123123
actions={[
124124
"cursor",
125-
{ label: "Open in Plant ID", url: "https://example.com/plant-id?q={prompt}", icon: "leaf" }
125+
{ label: "Open in Perplexity", url: "https://www.perplexity.ai/search?q={prompt}", icon: "magnifying-glass" }
126126
]}
127127
>
128-
Given a photo of a houseplant, identify the species and list its top three care requirements (light, water, humidity).
128+
Generate a TypeScript SDK from my OpenAPI spec. Follow the [TypeScript SDK quickstart](https://buildwithfern.com/learn/sdks/generators/typescript/quickstart.md).
129129
</Prompt>
130130
```
131131

0 commit comments

Comments
 (0)