
Security News
Security Community Slams MIT-linked Report Claiming AI Powers 80% of Ransomware
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.
github.com/carrene/vue-loading-checkbox
Advanced tools
A vue UI component for loading checkbox
npm install vue-loading-checkbox --save
Inside your .vue files
<template>
  <div id="your-component">
    <!-- Using Component -->
    <loading-checkbox
      :checked="checked"
      :loading="loading"
      label="Title of checkbox"
      @click.native="toggleStatus"
    />
  </div>
</template>
<script>
// Importing Component and style
import LoadingCheckbox from 'vue-loading-checkbox'
import 'vue-loading-checkbox/dist/LoadingCheckbox.css'
export default {
  name: 'YourComponentName',
  data() {
    return {
      checked: false,
      loading: false
    }
  },
  methods: {
    toggleStatus() {
      this.loading = true
      setTimeout(() => {
        this.loading = false
        this.checked = !this.checked
      }, 2000)
    }
  },
  components: {
    LoadingCheckbox // Registering Component
  }
}
</script>
| prop | description | default | 
|---|---|---|
| borderColor | Color of checkbox border | black | 
| borderRadius | Border radius of checkbox | 0 | 
| borderStyle | Style of checkbox border, (solid, dashed, dotted, ...) | solid | 
| borderWidth | width of checkbox border. You have to insert unit ( px,em...) | 1px | 
| checkColor | Color of check mark | white | 
| checked | Status of component. can be true(checked) orfalse(unchecked) | false | 
| checkedBackgroundColor | Background color of checkbox when status is checked | gray | 
| checkedBorderColor | Border color of checkbox when status is checked | null(same asborderColor) | 
| checkedBorderRadius | Border radius of checkbox when status is checked | null(same asborderRadius) | 
| checkedBorderStyle | Border style of checkbox when status is checked | null(same asborderStyle) | 
| checkedBorderWidth | Border width of checkbox when status is checked | null(same asborderWidth) | 
| checkIcon | Custom check mark image (.svg, png, etc). you have to pass it with require function | nullA default pure css check | 
| checkIconPadding | Padding of the given custom check mark image (This will not affect the size) | null | 
| fontColor | Text color of label | black | 
| fontSize | Font size of label | null(calculated based onsize) | 
| gap | Gap size between checkbox and its label in px. | null(calculated based onsize) | 
| label | Label of checkbox | null(no label) | 
| loading | If truecomponent is in loading state. it has a higher priority thanchecked | false | 
| loadingBackgroundColor | Background color of checkbox when status is loading | white | 
| loadingBorderColor | Border color of checkbox when status is loading | null(same asborderColor) | 
| loadingBorderRadius | Border radius of checkbox when status is loading | null(same asborderRadius) | 
| loadingBorderStyle | Border style of checkbox when status is loading | null(same asborderStyle) | 
| loadingBorderWidth | Border width of checkbox when status is loading | null(same asborderWidth) | 
| size | Size of component in px. | 30 | 
| spinnerColor | Color of spinner | black | 
| spinnerRingColor | Color of loading ring | lightgray | 
| uncheckedBackgroundColor | Background color of checkbox when status is unchecked | white | 
| uncheckedBorderColor | Border color of checkbox when status is unchecked | null(same asborderColor) | 
| uncheckedBorderRadius | Border radius of checkbox when status is unchecked | null(same asborderRadius) | 
| uncheckedBorderStyle | Border style of checkbox when status is unchecked | null(same asborderStyle) | 
| uncheckedBorderWidth | Border width of checkbox when status is unchecked | null(same asborderWidth) | 
:warning: Warning: You have to v-bind custom icon path with require function:
v-bind:checkIcon="require(@/assets/path/to/icon.svg)" :heavy_check_mark:
:checkIcon="require(@/assets/path/to/icon.svg)" :heavy_check_mark:
checkIcon="@/assets/path/to/icon.svg" :x:
checkIcon="require(@/assets/path/to/icon.svg)" :x:
Visit CONTRIBUTING Page
npm install
npm run serve
npm run build-bundle
npm run lint
MIT
FAQs
Unknown package
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Experts push back on new claims about AI-driven ransomware, warning that hype and sponsored research are distorting how the threat is understood.

Security News
Ruby's creator Matz assumes control of RubyGems and Bundler repositories while former maintainers agree to step back and transfer all rights to end the dispute.

Research
/Security News
Socket researchers found 10 typosquatted npm packages that auto-run on install, show fake CAPTCHAs, fingerprint by IP, and deploy a credential stealer.