Coder Social home page Coder Social logo

matijanovosel / vue-degree-picker Goto Github PK

View Code? Open in Web Editor NEW
1.0 1.0 1.0 62 KB

A degree picker component for Vue 3.

Home Page: https://www.npmjs.com/package/degree-picker

License: MIT License

HTML 3.12% Vue 88.17% TypeScript 8.71%
vue vue3 vuejs degrees picker degree-picker radial-picker material material-ui

vue-degree-picker's Introduction

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

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

vue-degree-picker's People

Contributors

igroovyboy avatar matijanovosel avatar

Stargazers

 avatar

Watchers

 avatar

Forkers

igroovyboy

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.