
Security News
NIST Under Federal Audit for NVD Processing Backlog and Delays
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
vue-radio-toggle-buttons
Advanced tools
🔘 Radio toggle buttons for Vue.
npm install vue-radio-toggle-buttons
# or
yarn add vue-radio-toggle-buttons
main.js:
import Vue from 'vue';
import VueRadioToggleButtons from 'vue-radio-toggle-buttons';
import App from './App.vue';
import 'vue-radio-toggle-buttons/dist/vue-radio-toggle-buttons.css';
Vue.use(VueRadioToggleButtons);
new Vue({
el: '#app',
render: h => h(App)
});
App.vue:
<template>
<RadioToggleButtons
v-model='currentValue'
:values='values'
color='purple'
textColor='#000'
selectedTextColor='#fff'
/>
</template>
<script>
export default {
name: 'App',
data() {
return {
values: [
{ label: 'Value 1', value: '1' },
{ label: 'Value 2', value: '2', disabled: true },
{ label: 'Value 3', value: '3' },
],
currentValue: ''
}
}
};
</script>
<RadioToggleButtons>
values
Type: Array<{ label: string, value: string, disabled: boolean }>
Required: true
Values of radio toggle buttons.
You can set
disabled
totrue
to disable that button.
color
Type: string
Default: '#333'
Primary color of radio toggle buttons.
textColor
Type: string
Default: '#333'
Text color of radio toggle buttons.
selectedTextColor
Type: string
Default: '#eee'
Text color of selected item of radio toggle buttons.
FAQs
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
As vulnerability data bottlenecks grow, the federal government is formally investigating NIST’s handling of the National Vulnerability Database.
Research
Security News
Socket’s Threat Research Team has uncovered 60 npm packages using post-install scripts to silently exfiltrate hostnames, IP addresses, DNS servers, and user directories to a Discord-controlled endpoint.
Security News
TypeScript Native Previews offers a 10x faster Go-based compiler, now available on npm for public testing with early editor and language support.