Skip to content
Huey
GitHub

Alpha Input

An input field for controlling the alpha (opacity) channel.

import { AlphaInput } from '@hueycolor/vue'
<script setup>
import { ref } from 'vue'
import { HueyRoot, AlphaInput, hueyColor } from '@hueycolor/vue'
const color = ref(hueyColor('#1A3263'))
</script>
<template>
<HueyRoot v-model="color">
<AlphaInput />
</HueyRoot>
</template>

Extends all standard HTML input attributes (id, placeholder, disabled, etc.).

Displays values from 0 (fully transparent) to 100 (fully opaque). Use the up/down arrow keys to adjust by 1. Hold Shift to adjust by 10.