mirror of
https://github.com/upstash/context7.git
synced 2026-09-14 19:09:34 +08:00
6d777619c2
Co-authored-by: Context7 Agent <docs-agent@context7.com> Co-authored-by: Josh <josh@upstash.com> Co-authored-by: context7[bot] <236830434+context7[bot]@users.noreply.github.com>
23 lines
467 B
Plaintext
23 lines
467 B
Plaintext
---
|
|
title: Prompt
|
|
description: Present a prompt that readers can copy or open in Cursor
|
|
---
|
|
|
|
The default action is `copy`.
|
|
|
|
## Usage
|
|
|
|
```mdx
|
|
<Prompt description="Copy this prompt" actions={["copy", "cursor"]}>
|
|
Explain this API in one paragraph.
|
|
</Prompt>
|
|
```
|
|
|
|
Set `actions={[]}` to hide the actions. `icon` and `iconType` are optional.
|
|
|
|
## Example
|
|
|
|
<Prompt description="Copy this prompt" actions={["copy", "cursor"]}>
|
|
Explain this API in one paragraph.
|
|
</Prompt>
|