greyby / vue-spinner

vue spinners
MIT License
1.81k stars 176 forks source link

Documentation not well eexplaineed #37

Open allestaire opened 3 years ago

allestaire commented 3 years ago
alidali96 commented 3 years ago

I had the same questions until I viewed the source code of one of the components. Here is an example of properties: props: { loading: { type: Boolean, default: true }, color: { type: String, default: '#5dc596' }, size: { type: String, default: '15px' }, margin: { type: String, default: '2px' }, radius: { type: String, default: '100%' }

loading is a boolean and it will show/hide the spinner v-show="loading" size is in 'px' width: parseFloat(this.size) 3 + parseFloat(this.margin) 6 + 'px'

Hope this helps you, if you want to explore more, you would have to check the component that you are implementing.