1.0.0 • Published 18 days ago
degree-picker v1.0.0
🚀 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
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 |
1.0.0
18 days ago
0.0.20
7 months ago
0.0.21
7 months ago
0.0.22
7 months ago
0.0.18
12 months ago
0.0.19
12 months ago
0.0.17
1 year ago
0.0.16
1 year ago
0.0.15
1 year ago
0.0.14
1 year ago
0.0.13
1 year ago
0.0.12
1 year ago
0.0.11
1 year ago
0.0.10
1 year ago
0.0.9
1 year ago
0.0.8
1 year ago
0.0.7
1 year ago
0.0.6
1 year ago
0.0.5
1 year ago
0.0.4
1 year ago
0.0.3
1 year ago
0.0.2
1 year ago
0.0.1
1 year ago