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

  • 0.0.15
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
3
increased by200%
Maintainers
1
Weekly downloads
 
Created
Source

Vue degree picker

A degree picker component for Vue 3.

🚀 Installation

Install using your package manager of choice:

yarn add degree-picker

Register the component inside your main.ts file and import the stylesheet:

import degreePicker from "degree-picker";
import "degree-picker/dist/degree-picker.css";

const app = createApp(App);
app.use(degreePicker);

⚙️ Usage

<template>
  <degree-picker active-color="green" v-model="degrees" />
</template>

<script lang="ts" setup>
import { ref } from "vue";
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
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 03 May 2023

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