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>import { ColorPreview } from '@hueycolor/svelte'<script>import { HueyRoot, ColorPreview, hueyColor } from '@hueycolor/svelte'
let color = $state(hueyColor('#1A326380'))</script>
<HueyRoot bind:color> <ColorPreview /></HueyRoot>| Prop | Type | Default | Description |
|---|---|---|---|
splitPreview | boolean | true | Shows a split view of the transparent and opaque color. |