useEyeDropper
useEyeDropper
リアクティブな EyeDropper API
使用法
import { useEyeDropper } from '@vueuse/core'
const { isSupported, open, sRGBHex } = useEyeDropper()
コンポーネントの使用法
<template>
<UseEyeDropper v-slot="{ isSupported, sRGBHex, open }">
<button :disabled="!isSupported" @click="() => open()">
sRGBHex: {{ sRGBHex }}
</button>
</UseEyeDropper>
</template>
© 2019–PRESENT Anthony Fu https://github.com/antfu
※このページは Nuxt.js 公式ドキュメントの翻訳ページです。
公式ドキュメントの該当ページはこちら:
#