burr icon indicating copy to clipboard operation
burr copied to clipboard

Burr Component Framework

Open elijahbenizzy opened this issue 1 year ago • 1 comments

Is your feature request related to a problem? Please describe. This is more exploratory -- looking for ideas!

Question, can we:

  1. Given a Burr app (maybe typed, see #139)
  2. And if not typed a set of response models
  3. And a server exposed through #304

Can we generate a UI or provide react-type components with something like ShadCN?

This could either:

  1. Work on pydantic types (E.G. like fastUI does)
  2. Have a few set patterns (chatbot, etc..)

Describe the solution you'd like TBD, see the above.

Describe alternatives you've considered Can always do custom.

Additional context As asked on discord

elijahbenizzy avatar Aug 03 '24 20:08 elijahbenizzy

Gradio has a JS library with frontend components for I/O. It would be convenient because it directly matches the server-side Python I/O code to interact with the Burr app.

However, this requires Burr users adopting Gradio features to some extent. If we're able to have sensible default for type -> gradio component, we could autogenerate the UI to some extent without users having to use Gradio explicitly.

zilto avatar Oct 21 '24 15:10 zilto