Skip to content

alert 4.6.0

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

About this version

Dusk UI Kit - Molecule - Alert

Storybook Docs

Installation

npm i -D @dusk-network/alert

Usage

<script>
  import Alert from "@dusk-network/alert";
  import Icon from "@dusk-network/icon/Icon.svelte";
  import Button from "@dusk-network/button/Button.svelte";
  import Group from "@dusk-network/group/Group.svelte";

  function onClick() {}
  function onMouseover() {}

  let variant = "success";
  let value = true;
</script>

<Alert value="{value}" variant="{variant}" on:click="{onClick}" on:mouseover="{onMouseover}">
  <div slot="icon">
    <Icon name="check-decagram-outline" />
  </div>
  <div slot="title">Alert Title!</div>
  <p>This is an alert!</p>
  <div slot="actions">
    <Group>
      <Button variant="{variant || 'brand'}" outline="{true}" on:click="{() => (value = false)}">
        Accept
      </Button>
      <Button variant="default" outline="{true}" on:click="{() => (value = false)}">Reject</Button>
    </Group>
  </div>
</Alert>

Details


Assets

  • alert-4.6.0-npm.tgz

Download activity

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