Giter VIP home page Giter VIP logo

miscellaneous-svelte-components's Introduction

Miscellaneous svelte components

This is collection of miscellaneous svelte components I often use in my projects.

How to use

I recommend to just copy code file of component you are going to use in your project. Because you often need to modify it to suite your needs or style.

gif

<script>
  import Knob from "../../src/Knob.svelte";
  let knob = 4;
</script>

<Knob bind:value />
<br />
value: {value}

Screenshot 2022-02-23 at 02 51 30

<script>
  import RadioButtonGroup from "../../src/RadioButtonGroup.svelte";
  let value = 10;
</script>

<RadioButtonGroup
      items={[1, 5, 10, 25, 50, 100].map((i) => ({ l: `${i}x`, v: i }))}
      bind:value
    />
<br />
value: {value}

gif

<script>
  import PanAndZoom from "../../src/PanAndZoom.svelte";
</script>
<PanAndZoom>
    <img src="https://placekitten.com/g/200/300" alt="demo" />
</PanAndZoom>

gif

<script>
  import InteractiveLabel from "../../src/InteractiveLabel.svelte";
  let value = 10;
</script>
<InteractiveLabel bind:value />
<br />
value: {value}

gif

<script>
  import Tooltip from "../../src/Tooltip.svelte";
</script>
<Tooltip tooltip="test">
      <div>hover pointer here</div>
</Tooltip>

Deployment note:

Do not forget to deploy target folder to gh-pages branch.

git subtree push --prefix demo/public origin gh-pages

miscellaneous-svelte-components's People

Contributors

alex-knyaz avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

nvlgzr nrde

miscellaneous-svelte-components's Issues

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.