简体   繁体   中英

How to decrease the stroke-width of md-progress-spinner in angular material 2?

I am using md-progress-spinner like this in my code :

<md-progress-spinner class="s-spinner" mode="indeterminate" color = "primary">
</md-progress-spinner>

How to change the stroke width of the svg rendered by md-progress spinner. By default the value of stroke width is 10 which is too big for my project.

As documentation says,

@Input()
strokeWidth
Stroke width of the progress spinner. By default uses 10px as stroke width.

That is an input of the component, exactly like "mode" Jo just use it like this:

<md-progress-spinner class="s-spinner" strokeWidth="x" mode="indeterminate" color = "primary">
</md-progress-spinner>

Where x is the width you want.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM