Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

degree-picker

Package Overview
Dependencies
Maintainers
1
Versions
23
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

degree-picker

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

Vue degree picker

A degree picker component for Vue 3.

🚀 Installation

Install using your package manager of choice:

yarn add degree-picker

📺 Demo

https://matija-components.vercel.app/degree-picker

⚙️ Usage

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>

📃 Props

NameTypeDefaultDescription
active-colorstring#567a0dBackground color of the active value and clock hand
body-colorstring#eeeBackground color of the picker body
v-modelnumberStandard two way input
stepnumber30The step used for displaying the degrees
minnumber/string0Minimum allowed value of the picker
maxnumber/string359Maximum allowed value of the picker
widthnumber/string290pxSets the width of the element - can be provided as a string like "290px" or "290" or a number, defaults to 290px
full-widthbooleanfalseIgnores the previous width prop and sets the width to 100% of the parent container
disabledbooleanfalseMakes the component unclickable
readonlybooleanfalseMakes the component unclickable, but does not make it seem disabled

Keywords

FAQs

Package last updated on 24 Apr 2024

Did you know?

Socket

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.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc