Can we have different UI input widgets like MultiSelect, Dependent Selection Fields, Checkbox, RadioButton in Chainlit in input_widget.py
Is your feature request related to a problem? Please describe. A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
I need to select multiple options. The options in chainlit elements like Select, Switch can not help me in this. I had to write some unintuitive code to get pass, but it's really difficult to navigate the UI.
Describe the solution you'd like A clear and concise description of what you want to happen.
I would request for different input widgets like -
- multi selection input widget where users can select multiple options with holding down shift maybe,
- dependent/cascading drop downs where 1 field value can alter other dropdown values.
- Checkboxes to select multiple options quickly
- Radiobuttons to select one of them if the list is small (not 2)
Describe alternatives you've considered A clear and concise description of any alternative solutions or features you've considered.
Adding multiple selection buttons and some custom options like redis cache to remember settings. This does not work if user wants to alter only one thing.
Additional context Add any other context or screenshots about the feature request here.
I am looking at the classes here : https://github.com/Chainlit/chainlit/blob/a58677bc3f18029b57c63563ef98f622e6724ffa/backend/chainlit/input_widget.py
This feature request would be incredibly helpful and address a broader range of use cases. I'm eagerly looking forward to seeing this feature implemented in Chainlit soon.
Chainlit team, any update on this?
Yeah this would be really helpful. The custom elements are also too restricting, to enable persistent multiple selections.
It would make chainlit a complete UI. With tick boxes it would be possible to choose between different data sources or mcp tools to use.
Has anyone found a work around?
I've been in need for this type of usage (small forms, people card, reorderable drag&drop items or even adding some references below one message). I'm using https://docs.chainlit.io/api-reference/elements/custom. I think this cover all the needs of inputs who have no direct ElementItem.
Please add also a date picker !