Skip to content
Huey
GitHub

Color Preview

Displays the currently selected color value.

import { ColorPreview } from '@hueycolor/vue'
<script setup>
import { ref } from 'vue'
import { HueyRoot, ColorPreview, hueyColor } from '@hueycolor/vue'
const color = ref(hueyColor('#1A326380'))
</script>
<template>
<HueyRoot v-model="color">
<ColorPreview />
</HueyRoot>
</template>
Prop Type Default Description
splitPreview boolean true Shows a split view of the transparent and opaque color.