Skip to content

feat: better component for prompts - #2984

Open
honzajavorek wants to merge 17 commits into
masterfrom
honzajavorek/prompt-component
Open

honzajavorek wants to merge 17 commits into
masterfrom
honzajavorek/prompt-component

Conversation

@honzajavorek

@honzajavorek honzajavorek commented Sep 16, 2026

Copy link
Copy Markdown
Collaborator

Closes #2979

  • Component now renders to llm.txt (bug of current PromptButton, does not render to llm.txt at all)
  • Using blockquote instead of pre, so that llm.txt reads more nicely, also semantics, also word wrapping works better
  • Can be collapsed or not
  • Can be used as a code block language! Just write ```prompt and that's it!
  • Of course, ```prompt title="Blah blah" is also supported to specify custom title
  • Renamed from PromptButton to PromptBlock so that it better describes what it's good for

Preview

To see it in action, check out preview of the following pages:

@apify-service-account

apify-service-account commented Sep 16, 2026

Copy link
Copy Markdown
Contributor

✅ Preview for this PR (commit df05ee8) is ready at https://pr-2984.preview.docs.apify.com (see action run).

@honzajavorek honzajavorek added t-academy Issues related to Web Scraping and Apify academies. t-docs Issues owned by technical writing team. labels Sep 16, 2026
@honzajavorek honzajavorek changed the title Tidy up PromptButton, add PromptExample feat: tidy up PromptButton, add PromptExample Sep 16, 2026
@honzajavorek honzajavorek changed the title feat: tidy up PromptButton, add PromptExample feat: better component for prompts Sep 16, 2026
@honzajavorek
honzajavorek force-pushed the honzajavorek/prompt-component branch from 4650699 to 0bf16d3 Compare September 16, 2026 14:39
@honzajavorek
honzajavorek marked this pull request as ready for review September 17, 2026 08:52
@honzajavorek
honzajavorek force-pushed the honzajavorek/prompt-component branch from 6679e07 to df05ee8 Compare September 17, 2026 08:52
@apify-service-account apify-service-account added the tested Temporary label used only programatically for some analytics. label Sep 17, 2026
@TC-MO
TC-MO requested a review from barjin September 18, 2026 08:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

t-academy Issues related to Web Scraping and Apify academies. t-docs Issues owned by technical writing team. tested Temporary label used only programatically for some analytics.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Adjust the prompt component to show the prompt by default

2 participants