- Context Components
- Prompts
Context Components
Prompts
Give readers a ready-to-use instruction for their coding agent.
Use a Prompt when the next step is a task a reader can delegate to an agent.
The copy action includes the prompt body, not the description.
Example
Check your documentation
Use the DocsAlot CLI to pull my latest documentation, check internal links, and preview the site locally. Show me the changes before publishing.
<Prompt description="Check your documentation" icon="terminal" actions={['copy']}>
Use the DocsAlot CLI to pull my latest documentation, check internal links,
and preview the site locally. Show me the changes before publishing.
</Prompt>
To offer both copying and a handoff to Cursor, use actions={['copy', 'cursor']}.
The Cursor action opens an external prompt link; it does not run the task automatically.
Do not include passwords, tokens or private customer data in reusable prompts.
Properties
| Property | Default | Purpose |
|---|---|---|
description | None | Short heading above the prompt. |
children | None | Prompt text or content. |
actions | ['copy'] | Supported actions: copy and cursor. An empty array hides both. |
icon | None | Named Font Awesome icon. |
iconType | Renderer default | Font Awesome style, such as solid or regular. |
