Fix component property docs for callouts, cards, and steps#4493
Merged
Fix component property docs for callouts, cards, and steps#4493
Conversation
Generated-By: mintlify-agent
There was a problem hiding this comment.
Cursor Bugbot has reviewed your changes and found 1 potential issue.
Bugbot Autofix prepared a fix for the issue found in the latest run.
- ✅ Fixed: Import placed mid-file unlike all other components
- Moved the
IconsOptionalimport to immediately after frontmatter incomponents/callouts.mdxto match the repository’s MDX import placement convention.
- Moved the
Or push these changes by commenting:
@cursor push 2a29d079d1
Preview (2a29d079d1)
diff --git a/components/callouts.mdx b/components/callouts.mdx
--- a/components/callouts.mdx
+++ b/components/callouts.mdx
@@ -4,6 +4,8 @@
keywords: ["callouts", "notes", "warnings", "info boxes", "tips", "emphasis", "highlight"]
---
+import IconsOptional from "/snippets/icons-optional.mdx";
+
Style callouts as Note, Warning, Info, Tip, Check, Danger, or create your own callout:
<Note>This adds a note in the content</Note>
@@ -52,8 +54,6 @@
The generic `Callout` component supports custom icons and colors. The typed callouts (`Note`, `Warning`, `Info`, `Tip`, `Check`, `Danger`) use preset icons and colors and only accept `children`.
-import IconsOptional from "/snippets/icons-optional.mdx";
-
<IconsOptional />
<ResponseField name="color" type="string">This Bugbot Autofix run was free. To enable autofix for future PRs, go to the Cursor dashboard.
ethanpalm
reviewed
Mar 16, 2026
ethanpalm
reviewed
Mar 16, 2026
ethanpalm
reviewed
Mar 16, 2026
ethanpalm
approved these changes
Mar 16, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


Summary
Calloutcomponent documentingicon,iconType, andcolorprops. Clarified that typed callouts (Note, Warning, etc.) only accept children.titleprop from required to optional (matches code). Added undocumenteddisabledprop.titleprop to be marked as required andchildrento be optional (matches code). Reordered properties to listtitlefirst.Note
Low Risk
Low risk: documentation-only changes that adjust prop requirements/ordering and add missing
Calloutcustomization details, with no runtime behavior changes.Overview
Updates the component docs to better reflect supported props and requirements.
Calloutsdocumentation now includes a customCalloutproperties section, clarifying that typed callouts only acceptchildrenand documenting custom icon/color usage viaIconsOptionalplus acolorfield.Cardsdocs adjust thetitleprop to be optional (removing therequiredmarker) andStepsdocs reorder/clarify individualStepprops by markingtitleas required andchildrenas optional.Written by Cursor Bugbot for commit d3c56d1. This will update automatically on new commits. Configure here.