Skip to content

toggle 5.0.30

Install from the command line:
Learn more about npm packages
$ npm install @dusk-network/toggle@5.0.30
Install via package.json:
"@dusk-network/toggle": "5.0.30"

About this version

Dusk UI Kit - Atom - Toggle

Storybook Docs

Installation

npm i -D @dusk-network/toggle

Usage

<script>
  import Toggle from "@dusk-network/toggle";

  let value = "toggle";
  const type = "switch";
  let variant = "brand";
  let checked = false;

  function onChange() {
    //Runs on triggered event
  }
  function onClick() {
    //Runs on triggered event
  }
</script>

<Toggle
  type="{type}"
  name="switch"
  id="switch"
  variant="{variant}"
  value="{value}"
  checked="{checked}"
  onIcon="brightness-5"
  offIcon="connection"
  on:change="{onChange}"
  on:click="{onClick}"
/>

Details


Assets

  • toggle-5.0.30.tgz

Download activity

  • Total downloads 5
  • Last 30 days 0
  • Last week 0
  • Today 0