Prompt
The <Prompt> component displays an AI prompt card with an icon, a single-line prompt preview, a copy button, and optional “Open in” action buttons for AI tools. Add it to any page so readers can copy the instructions or open them directly in Cursor, Claude, or ChatGPT.
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.
Copying or opening a prompt preserves its original markdown formatting.
Usage
By default, <Prompt> renders a sparkle icon, the prompt text, and a copy button. Action buttons appear inline when no title is set.
You are a **docs setup assistant**. Help the user create and publish a new docs site.
Follow the [Quickstart guide](https://buildwithfern.com/learn/docs/getting-started/quickstart.md) step by step.Variants
With title
Set the title prop to add a header row above the prompt bar. When a title is set, action buttons move into the header row.
Generate a TypeScript SDK
Generate a TypeScript SDK from my OpenAPI spec. Follow the [TypeScript SDK quickstart](https://buildwithfern.com/learn/sdks/generators/typescript/quickstart.md).With a single open-in action
Set the actions prop to add a button that opens the prompt directly in an AI tool. Available values: cursor, claude, chatgpt.
Generate a TypeScript SDK
Generate a TypeScript SDK from my OpenAPI spec. Follow the [TypeScript SDK quickstart](https://buildwithfern.com/learn/sdks/generators/typescript/quickstart.md).With multiple open-in actions
When multiple actions are specified, the first becomes the primary button and the rest are accessible via a dropdown.
Generate a TypeScript SDK
Generate a TypeScript SDK from my OpenAPI spec. Follow the [TypeScript SDK quickstart](https://buildwithfern.com/learn/sdks/generators/typescript/quickstart.md).With a custom icon
Set the icon prop to a Font Awesome icon name or image URL.
Generate a TypeScript SDK
Generate a TypeScript SDK from my OpenAPI spec. Follow the [TypeScript SDK quickstart](https://buildwithfern.com/learn/sdks/generators/typescript/quickstart.md).Properties
The prompt text in markdown. This content is shown as a single-line preview, copied to the clipboard, or sent to the selected AI tool with its original markdown formatting preserved.
A title displayed above the prompt bar.
A Font Awesome icon name or image URL displayed to the left of the prompt text. Defaults to a sparkle icon when omitted.
The “Open in” action buttons to display. Available values: cursor, claude, chatgpt. The first action renders as the primary button. Additional actions are accessible via a dropdown. The copy button is always present regardless of this prop.