Sample text,

useCssVar

Manipulate CSS variables

Usage

import { useCssVar } from '@vueuse/core'

const el = ref(null)
const color = useCssVar('--color', el)

Type Declarations

/**
 * Manipulate CSS variables.
 *
 * @link /useCssVar
 * @param prop
 * @param el
 * @param options
 */
export declare function useCssVar(
  prop: string,
  target?: MaybeElementRef,
  { window }?: ConfigurableWindow
): Ref<string>

Source

SourceDemoDocs