Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
vue-radio-button
Advanced tools
Readme
# npm
$ npm install vue-radio-button
#yarn
$ yarn add vue-radio-button
import Vue from "vue";
import VueRadioButton from "vue-radio-button";
Vue.use(VueRadioButton);
<template>
<VueRadioButton v-model="selectedButton" :options="buttons">
<template #label="{ props }">
<img :src="props.icon" width="50" height="50" />
<span>{{ props.title }}</span>
</template>
</VueRadioButton>
</template>
<script>
import VueRadioButton from "vue-radio-button";
export default {
components: { VueRadioButton },
data: () => ({
selectedButton: "",
buttons: [
{
id: 1,
icon: "https://vuejs.org/images/logo.svg",
title: "Vue",
},
{
id: 2,
icon: "https://vitejs.dev/logo.svg",
title: "Vite",
},
],
}),
};
</script>
<style>
.v-radio-label {
display: inline-flex;
flex-direction: column;
justify-content: center;
align-items: center;
width: 100px;
height: 100px;
margin: 5px;
border-radius: 4px;
border: 1px solid #eee;
transition: all 500ms;
}
.v-radio-active {
box-shadow: 0 1px 5px 0 rgba(0, 0, 0, 0.2);
}
</style>
Key | Type | Description | Default |
---|---|---|---|
value | Object | selected button | null |
options | Array | list of buttons | required |
name | String , Number | Group of radio buttons | required if you have some group of radio buttons |
For customizing you can use label slot
and classes :
Class name | Description |
---|---|
v-radio-container | container of VueRadioButton |
v-radio-label | class of each label |
v-radio-active | class of checked radio |
FAQs
Unknown package
The npm package vue-radio-button receives a total of 15 weekly downloads. As such, vue-radio-button popularity was classified as not popular.
We found that vue-radio-button 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.