Skip to content

Document optional prop on Step - #7789

Open
devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1794071239-step-optional-prop
Open

devin-ai-integration[bot] wants to merge 1 commit into
mainfrom
devin/1794071239-step-optional-prop

Conversation

@devin-ai-integration

Copy link
Copy Markdown
Contributor

Summary

<Step> now accepts an optional boolean prop. It shows an "Optional" badge after the step title, and in the Markdown/llms.txt output the step heading gets an Optional: prefix (<Step title="Prune" optional> → #### Optional: Prune). Readers and AI agents can reliably tell which steps they can skip. Authors no longer have to type "Optional:" into titles by hand, and screen readers announce the badge as part of the step heading.

Implements docs for: feat(docs): add optional prop to Step (fern-api/fern-platform#16039)

Pages changed

  • fern/products/docs/pages/component-library/default-components/steps.mdx: new "Optional steps" variant (live example + code) and an optional ParamField under <Step> properties (boolean, default false) covering the badge, the screen-reader behavior, and the Markdown/llms.txt output (including the **Optional:** paragraph for untitled steps). Also changed "they are" to "they're" on an existing line to clear a Vale error.
  • fern/products/docs/pages/changelog/2026-11-05.mdx: new "Mark steps as optional" entry (components tag) that links to /learn/docs/writing-content/components/steps#optional-steps.

Cross-reference sweep: no other page needed a link. The agent instruction page fern-instructions/docs/write/components.mdx only lists <Steps> as a component pick, so I left it alone. The dashboard visual editor renders the badge but has no control for the prop, so no dashboard docs were added.

Checks: pre-commit (Vale) passes on the changed files. fern check --warnings reports 0 errors.

Link to Devin session: https://app.devin.ai/sessions/65a522770c5a4bd6859655c099883c52
Open in Devin Desktop: https://app.devin.ai/desktop/session/65a522770c5a4bd6859655c099883c52?variant=devin

Co-Authored-By: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
@devin-ai-integration

Copy link
Copy Markdown
Contributor Author

I'll fix CI failures and address comments from users with write access. I'll skip comments containing "(aside)".

  • Disable automatic comment, CI, and merge conflict monitoring

@github-actions

github-actions Bot commented Nov 7, 2026

Copy link
Copy Markdown
Contributor

🌿 Preview your docs: https://fern-preview-devin-1794071239-step-optional-prop.docs.buildwithfern.com/learn

Here are the markdown pages you've updated:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants