1.0.0 • Published 1 year ago

degree-picker v1.0.0

Weekly downloads
-
License
-
Repository
github
Last release
1 year ago

🚀 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
1.0.0

1 year ago

0.0.20

2 years ago

0.0.21

2 years ago

0.0.22

2 years ago

0.0.18

2 years ago

0.0.19

2 years ago

0.0.17

2 years ago

0.0.16

2 years ago

0.0.15

2 years ago

0.0.14

2 years ago

0.0.13

2 years ago

0.0.12

2 years ago

0.0.11

2 years ago

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago