Enhance documentation for Acode UI components and utilities - #113
Conversation
codewithchai0605
commented
Oct 3, 2026
- Updated themes documentation to clarify theme management and usage.
- Improved alert component documentation with examples and usage details.
- Expanded confirm dialog documentation, including new options and examples.
- Enhanced multiPrompt documentation with detailed input options and examples.
- Revised prompt component documentation for clarity and added validation examples.
- Updated select component documentation to include rich item options and handling cancel scenarios.
- Added introductory sections and descriptions for CodeMirror and Commands utilities.
- Ensured consistent formatting and improved readability across all documentation updates.
- Updated themes documentation to clarify theme management and usage. - Improved alert component documentation with examples and usage details. - Expanded confirm dialog documentation, including new options and examples. - Enhanced multiPrompt documentation with detailed input options and examples. - Revised prompt component documentation for clarity and added validation examples. - Updated select component documentation to include rich item options and handling cancel scenarios. - Added introductory sections and descriptions for CodeMirror and Commands utilities. - Ensured consistent formatting and improved readability across all documentation updates.
|
|
|
||
| ```js | ||
| // 1. Callback: the promise stays pending forever, so use it for side effects | ||
| await select("Choose", items, { onCancel: () => console.log("cancelled") }); |
There was a problem hiding this comment.
Cancellation stalls example This example awaits a selection that the page says remains pending forever when the user cancels with an
onCancel callback. The callback logs the cancellation, but execution never reaches the next example or any following code. Show a callback flow that does not await the pending promise, or make it settle.
|
@greptile-apps review |
|
Want your agent to iterate on Greptile's feedback? Try greploops. |