Skip to content

Danue1/use-css-variable

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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') // --foo
}

See the API for more details

roadmap

support

  • hsl
  • hsla
  • radian

Lincense

MIT

About

A pretty custom hooks for css variable and react.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published