0.2.0 • Published 5 years ago

use-css-variable v0.2.0

Weekly downloads
4
License
MIT
Repository
github
Last release
5 years ago

use-css-variable

A pretty custom hooks for css variable and react.

  • type-safe!

Install

// npm
npm install --save use-css-variable

// yarn
yarn add use-css-variable

Usage

import React, { FC } from 'react'
import { useCSSVariable } from 'use-css-variable'

export const Component: FC = () => {
  const [foo, setFoo] = useCSSVariable('foo')
  ...
}

See the API for more details

Lincense

MIT