Security News
Weekly Downloads Now Available in npm Package Search Results
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
degree-picker
Advanced tools
A degree picker component for Vue 3.
Install using your package manager of choice:
yarn add degree-picker
https://matija-components.vercel.app/degree-picker
Import the component locally or define it globally and include the css file:
<template>
<degree-picker active-color="green" v-model="degrees" />
</template>
<script lang="ts" setup>
import { DegreePicker } from "degree-picker";
import { ref } from "vue";
import "degree-picker/dist/style.css";
const degrees = ref(0);
</script>
Name | Type | Default | Description |
---|---|---|---|
active-color | string | #567a0d | Background color of the active value and clock hand |
body-color | string | #eee | Background color of the picker body |
v-model | number | Standard two way input | |
step | number | 30 | The step used for displaying the degrees |
min | number/string | 0 | Minimum allowed value of the picker |
max | number/string | 359 | Maximum allowed value of the picker |
width | number/string | 290px | Sets the width of the element - can be provided as a string like "290px" or "290" or a number, defaults to 290px |
full-width | boolean | false | Ignores the previous width prop and sets the width to 100% of the parent container |
disabled | boolean | false | Makes the component unclickable |
readonly | boolean | false | Makes the component unclickable, but does not make it seem disabled |
FAQs
Unknown package
We found that degree-picker demonstrated a healthy version release cadence and project activity because the last version was released less than 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
Socket's package search now displays weekly downloads for npm packages, helping developers quickly assess popularity and make more informed decisions.
Security News
A Stanford study reveals 9.5% of engineers contribute almost nothing, costing tech $90B annually, with remote work fueling the rise of "ghost engineers."
Research
Security News
Socket’s threat research team has detected six malicious npm packages typosquatting popular libraries to insert SSH backdoors.