1.0.9 • Published 3 years ago

svelte-calculator v1.0.9

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago
npm i svelte-calculator
PropAboutDefault ValueFormat
SoundKey SoundstrueBoolean
animationBoolean Value to Enable and Disable Default AnimationtrueBoolean
sizeSize of Calculator"100"Any Size out of "50" , "75" , "90" , "95" , "100" , "105" , "110" , "125" , "150"
normalKeyColorBackground Color of Normal Numeric Keys of Calculatorrgba( 243 , 244 , 246 )ColorName or rgb or rgba or Hex
operatorKeyColorBackground Color of Operator Keys of Calculatorrgba( 229 , 231 , 235 )ColorName or rgb or rgba or Hex
ClassClasses to add to the Calculator ComponentNAClassName (String)
calculatorBackgroundBackground Color of Calculator#ffffffColorName or rgb or rgba or Hex
inputBackgroundBackground Color of Screen of Calculatorrgba( 229 , 231 , 235 )ColorName or rgb or rgba or Hex

https://user-images.githubusercontent.com/56549294/126066513-5445825f-a416-4c73-8ac3-0198e83f4fab.mov

npm i svelte-calculator
// in .js file where you want to use this component
import Calculator from "svelte-calculator";
// in the same.js file where you want to use this component outside <script></script> tag
<Calculator
  size={"200"}
  normalKeyColor="white"
  operatorKeyColor="orange"
  Class={"calculatorClass"}
  animation={true}
  calculatorBackground={"rgba(0,0,0,0.1)"}
  inputBackground={"#DDE5B6"}
/>
+ Developed with ❤️ by Arshdeep Singh