JSPM

use-css-variable

0.2.0
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 14
  • Score
    100M100P100Q50595F
  • License MIT

A pretty custom hooks for css variable and react

Package Exports

  • use-css-variable

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (use-css-variable) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

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