Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/arshdeepsahni/svelte-calculator

Minimal (Svelte + Tailwind) Calculator Package
https://github.com/arshdeepsahni/svelte-calculator

calculator svelte sveltejs tailwindcss

Last synced: 25 days ago
JSON representation

Minimal (Svelte + Tailwind) Calculator Package

Awesome Lists containing this project

README

        


Svelte-Calculator

NPM downloads


```
npm i svelte-calculator
```




npm

Svelte Calculator
<br />
























Props




|Prop|About|Default Value|Format|
|---|---|---|---|
|Sound|Key Sounds|true|Boolean|
|animation|Boolean Value to Enable and Disable Default Animation|true|Boolean|
|size|Size of Calculator|"100"|Any Size out of [ "50" , "75" , "90" , "95" , "100" , "105" , "110" , "125" , "150" ]|
|normalKeyColor|Background Color of Normal Numeric Keys of Calculator|rgba( 243 , 244 , 246 )|ColorName or rgb or rgba or Hex|
|operatorKeyColor|Background Color of Operator Keys of Calculator|rgba( 229 , 231 , 235 )|ColorName or rgb or rgba or Hex|
|Class|Classes to add to the Calculator Component|NA|ClassName (String)|
|calculatorBackground|Background Color of Calculator|#ffffff|ColorName or rgb or rgba or Hex|
|inputBackground|Background Color of Screen of Calculator|rgba( 229 , 231 , 235 )|ColorName or rgb or rgba or Hex|















Steps To Use thus Plugin:






  • 1. Install


    ```bash
    npm i svelte-calculator
    ```




  • 2. Import


    ```javascript
    // in .js file where you want to use this component
    import Calculator from "svelte-calculator";
    ```





  • 4. Usage


    ```javascript
    // in the same.js file where you want to use this component outside tag

    ```
















```diff
+ Developed with ❤️ by Arshdeep Singh
```