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 9 months ago • 6 comments
trafficstars

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