
Security News
Axios Maintainer Confirms Social Engineering Attack Behind npm Compromise
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.
vue-boolean
Advanced tools
Vue-Boolean it is a renderer for child component
Only for Vue 3
npm i vue-boolean
<script setup>
import { VueBoolean } from 'vue-boolean'
import { ref } from 'vue'
const booleanModel = ref(false)
</script>
<template>
<vue-boolean v-model="booleanModel">
<button>Press to true</button>
</vue-boolean>
</template>
<script>
import { VueBoolean } from 'vue-boolean'
export default {
components: {
VueBoolean
},
data() {
return {
booleanModel: false
}
}
}
</script>
<template>
<vue-boolean v-model="booleanModel">
<button>Press to true</button>
</vue-boolean>
</template>
With Nuxt 3
// plugins/vue-boolean.ts
import { defineNuxtPlugin } from 'nuxt/app'
import VueBoolean from 'vue-boolean'
export default defineNuxtPlugin((nuxtApp) => {
nuxtApp.vueApp.use(VueBoolean)
})
when state set to true, slot class will be set to "checked" with model
props:
@change - fires on state change
:checked - set default state. default - false
v-model - modelled state
event - custom event to change state. "click" by default
className - custom class to add. default - checked
<vue-boolean v-model="booleanModel">
<button>With model</button>
</vue-boolean>
when clicked it renders to:
<button class="checked">With model</button>
<vue-boolean>
<button>without model</button>
</vue-boolean>
<vue-boolean :checked="true">
<button>with default</button>
</vue-boolean>
<vue-boolean :event="mouseover">
<button>with event</button>
</vue-boolean>
<vue-boolean class-name="state-checked" v-model="booleanModel">
<button>With custom class</button>
</vue-boolean>
renders to
<button class="state-checked">With custom class</button>
FAQs
<a h
We found that vue-boolean demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
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
Axios compromise traced to social engineering, showing how attacks on maintainers can bypass controls and expose the broader software supply chain.

Security News
Node.js has paused its bug bounty program after funding ended, removing payouts for vulnerability reports but keeping its security process unchanged.

Security News
The Axios compromise shows how time-dependent dependency resolution makes exposure harder to detect and contain.