chainlit icon indicating copy to clipboard operation
chainlit copied to clipboard

Can we have different UI input widgets like MultiSelect, Dependent Selection Fields, Checkbox, RadioButton in Chainlit in input_widget.py

Open shivsant opened this issue 10 months ago • 6 comments

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 -

  1. multi selection input widget where users can select multiple options with holding down shift maybe,
  2. dependent/cascading drop downs where 1 field value can alter other dropdown values.
  3. Checkboxes to select multiple options quickly
  4. 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

shivsant avatar Feb 05 '25 04:02 shivsant

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.

kumarprashant4u avatar Feb 05 '25 05:02 kumarprashant4u

Chainlit team, any update on this?

shivsant avatar Mar 11 '25 10:03 shivsant

Yeah this would be really helpful. The custom elements are also too restricting, to enable persistent multiple selections.

mpalaourg avatar Jun 12 '25 18:06 mpalaourg

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?

philipplelidis avatar Jul 18 '25 08:07 philipplelidis

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.

pmercier avatar Aug 30 '25 17:08 pmercier

Please add also a date picker !

PhenSG avatar Sep 02 '25 15:09 PhenSG