vscode-elements / elements

Web component library for developing Visual Studio Code extensions
https://vscode-elements.github.io
MIT License
99 stars 18 forks source link

Missing controls comparing to vscode-webview-ui-toolkit #153

Closed veredcon closed 1 hour ago

veredcon commented 2 days ago

Hi,

We would like to adopt this library instead of the deprecated vscode-webview-ui-toolkit. There are 3 missing controls that we currently use: Progress Ring Link Divider Is there a plan to implement them?

Thanks!

bendera commented 1 day ago

Is there a plan to implement them?

From now on, there is. (Although, I would use the native <a> and <hr> .)

bendera commented 1 day ago

I thought about this.

Link: I don't see the point of this component. Webview already provides a default style, including the native links. This component has no added value.

Progress Ring: This can be done by the Icon component: https://vscode-elements.github.io/components/icon/#animated-icons image <vscode-icon name="loading" spin spin-duration="1" size="28" style="color: var(--vscode-progressBar-background);"></vscode-icon>

Divider: Actually, it's a <hr> element with some CSS customization. There isn't any specific theme variable for the divider color, but --vscode-widget-border is okay.

I'm not sure if it's worth introducing new components because of these. What do you think about this?