1.0.0-beta.1 • Published 2 years ago

@quartzds/open-core-vue v1.0.0-beta.1

Weekly downloads
-
License
LGPL-2.1-only
Repository
-
Last release
2 years ago

@quartzds/open-core-vue

NPM Package License

Vue wrapper for Quartz design system web components.

💿 Installation

npm install @quartzds/open-core-vue vue

📖 Usage

Importing Components

Every Quartz core component is available to import as a Vue component. Note that we're importing the <QdsButton> Vue component instead of the <qds-button> custom element in the example below:

<template>
  <QdsButton importance="emphasized">Click me</QdsButton>
</template>

<script setup>
import { QdsButton } from '@quartzds/open-core-vue'
</script>

Event Handling

Many Quartz core components emit custom events. For example, the input component emits the qdsInput event when it receives input. In Vue, you can listen to the event using @qdsInput.

Here's how you can bind the input's value to a state variable:

<template>
  <QdsInput
    value="{value}"
    @qdsInput="
      (event) => {
        value = event.target.value
      }
    "
  />
</template>

<script setup>
import { ref } from 'vue'
import { QdsButton } from '@quartzds/open-core-vue'

const value = ref('')
</script>

⚖️ License

See the LICENSE file for license rights and limitations.

1.0.0-beta.22

2 years ago

1.0.0-beta.23

2 years ago

1.0.0-beta.21

2 years ago

1.0.0-beta.20

2 years ago

1.0.0-beta.19

2 years ago

1.0.0-beta.17

2 years ago

1.0.0-beta.18

2 years ago

1.0.0-beta.15

2 years ago

1.0.0-beta.16

2 years ago

1.0.0-beta.13

2 years ago

1.0.0-beta.14

2 years ago

1.0.0-beta.11

2 years ago

1.0.0-beta.12

2 years ago

1.0.0-beta.10

2 years ago

1.0.0-beta.6

2 years ago

1.0.0-beta.7

2 years ago

1.0.0-beta.8

2 years ago

1.0.0-beta.9

2 years ago

1.0.0-beta.5

2 years ago

1.0.0-beta.4

2 years ago

1.0.0-beta.3

2 years ago

1.0.0-beta.2

2 years ago

1.0.0-beta.1

2 years ago

1.0.0

2 years ago