longbridgeapp / gpui-component

UI components write in GPUI.
Apache License 2.0
150 stars 20 forks source link

list: Add render_initial support to List. #258

Closed ihavecoke closed 3 weeks ago

ihavecoke commented 3 weeks ago

Add a method to the List component to render the initial state. When input is empty, you may need to render a special interface to the user. This method can be called at this point

Showcase

https://github.com/user-attachments/assets/39c61bfe-4451-43f9-b0d9-8f941ebd94dd