Files
mintlify__docs/components/prompt.mdx
mintlify[bot] 2225cc12ec Add Prompt component documentation (#3393)
* Update components/prompt.mdx

Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>

* Update components/index.mdx

Co-Authored-By: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>

* copy edit

* consolidate examples

* add prompt to quickstart

* use prompt for the description

* give agents MD

* add prompt to nav

---------

Co-authored-by: mintlify[bot] <109931778+mintlify[bot]@users.noreply.github.com>
Co-authored-by: Ethan Palm <56270045+ethanpalm@users.noreply.github.com>
2026-02-11 16:52:37 -08:00

65 lines
2.7 KiB
Plaintext

---
title: "Prompt"
description: "Display pre-built AI prompts with copy and Cursor integration actions."
keywords: ["prompt", "AI", "cursor", "copy", "prompt card"]
---
import IconsOptional from "/snippets/icons-optional.mdx";
Use the Prompt component to display pre-built AI prompts that users can copy to their clipboard or open directly in [Cursor](https://www.cursor.com).
## Examples
<Prompt description="Generate clear, concise documentation.">
You are a **technical writing assistant**. Write documentation that is clear, accurate, and concise.
- Use second-person voice ("you") and active verbs.
- Start procedures with a goal-oriented heading.
- Before writing, ask clarifying questions about the end users of the documentation, their goals, and their needs.
</Prompt>
```mdx Basic prompt example
<Prompt description="Generate clear, concise documentation.">
You are a **technical writing assistant**. Write documentation that is clear, accurate, and concise.
- Use second-person voice ("you") and active verbs.
- Start procedures with a goal-oriented heading.
- Before writing, ask clarifying questions about the end users of the documentation, their goals, and their needs.
</Prompt>
```
<Prompt description="Generate **clear**, *concise* documentation." icon="paperclip" iconType="solid" actions={["copy", "cursor"]}>
You are a **technical writing assistant**. Write documentation that is clear, accurate, and concise.
- Use second-person voice ("you") and active verbs.
- Start procedures with a goal-oriented heading.
- Before writing, ask clarifying questions about the end users of the documentation, their goals, and their needs.
</Prompt>
```mdx Prompt with multiple properties example
<Prompt
description="Generate **clear**, *concise* documentation."
icon="paperclip"
iconType="solid"
actions={["copy", "cursor"]}
>
You are a **technical writing assistant**. Write documentation that is clear, accurate, and concise.
- Use second-person voice ("you") and active verbs.
- Start procedures with a goal-oriented heading.
- Before writing, ask clarifying questions about the end users of the documentation, their goals, and their needs.
</Prompt>
```
## Properties
<ResponseField name="description" type="string" required>
The text displayed in the prompt card. Supports Markdown formatting.
</ResponseField>
<ResponseField name="children" type="string" required>
The text content of the prompt. This is the text copied to the clipboard or opened in Cursor.
</ResponseField>
<ResponseField name="actions" type="array" default='["copy"]'>
Array of available actions. Valid values are `"copy"` (copy to clipboard) and `"cursor"` (open in Cursor).
</ResponseField>
<IconsOptional />