Skip to content

useColorVariableBinding ​

useColorVariableBinding(kind) exposes search, binding, and unbinding helpers for color variables used by fill and stroke editors.

Use it when building color UIs that need to connect fills or strokes to design variables.

Usage ​

ts
import { useColorVariableBinding } from '@open-pencil/vue'

const fillBinding = useColorVariableBinding('fills')
const strokeBinding = useColorVariableBinding('strokes')

Released under the MIT License.