---
title: "Prompt"
subtitle: "<Prompt> is a prompt block readers can copy or open in AI tools."
---

A prompt that readers can copy or open in an AI tool in one click:

```mdx
<Prompt title="Have AI write your docs.yml" actions={["claude", "chatgpt", "cursor"]}>
  Read https://docs.butterix.com/llms.txt and generate a ButterIX docs.yml for my Express API project with two tabs: "Guides" and "API reference".
</Prompt>
```

<Prompt title="Have AI write your docs.yml" actions={["claude", "chatgpt", "cursor"]}>
  Read https://docs.butterix.com/llms.txt and generate a ButterIX docs.yml for my Express API project with two tabs: "Guides" and "API reference".
</Prompt>

<ParamField path="title" type="string">Title row; when set, the action buttons move into the title row.</ParamField>
<ParamField path="icon" type="icon">Icon to the left of the prompt.</ParamField>
<ParamField path="actions" type="array">The built-in `"claude"`, `"chatgpt"`, `"cursor"`, or `{ label, url, icon }` (`url` can use a `{prompt}` placeholder). The first is the primary button and the rest go into a dropdown; the copy button is always present.</ParamField>
<ParamField path="hidePrompt" type="boolean" default="false">Show only the title row (requires `title`).</ParamField>
<ParamField path="singleLine" type="boolean" default="false">Truncate the body to one line.</ParamField>
