Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support disabling mo.ui.chat input #3823

Open
aszenz opened this issue Feb 17, 2025 · 0 comments
Open

Support disabling mo.ui.chat input #3823

aszenz opened this issue Feb 17, 2025 · 0 comments
Labels
enhancement New feature or request good first issue (typescript) Good first issue on the frontend/typescript help wanted Extra attention is needed

Comments

@aszenz
Copy link

aszenz commented Feb 17, 2025

Description

I was hoping to make my chatbot disabled until the user entered an api key in another input but didn't see any parameter to disable the input.

Suggested solution

Support disabled parameter on the Chat input.

When set to true it can create a non interactive overlay over the input.

Html now supports inert attribute to disable interactions inside an element. Inert elements can be styled to achieve the disabled styling.

See: https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/inert

Alternative

Currently using mo.stop to not show the cell at all.

Additional context

Here's the notebook where I want to use this:

https://aszenz.github.io/kashmiri-chatbot/

By not showing the input, I have a feeling people won't understand how the chatbot looks like.

@aszenz aszenz added the enhancement New feature or request label Feb 17, 2025
@mscolnick mscolnick added help wanted Extra attention is needed good first issue (typescript) Good first issue on the frontend/typescript labels Feb 18, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request good first issue (typescript) Good first issue on the frontend/typescript help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

2 participants