okrad / svelte-progressbar

A multiseries, SVG progressbar component made with Svelte
https://okrad.github.io/svelte-progressbar/
MIT License
129 stars 18 forks source link

Fit width to parent #25

Closed Crelde closed 1 year ago

Crelde commented 2 years ago

Is there anyway to make the progress bar take up 100% width? It seems its only possible to give it px as a prop. It would help me a lot to make my bars a bit more responsive. Otherwise really neat project!

okrad commented 1 year ago

Hi @Crelde, sorry for the late reply! In the new release, if no width is specified (or if is "auto" or "100%"), the progress bar will take the whole width of the parent!