@glitz/prefixer-transformer
    TypeScript icon, indicating that this package has built-in type declarations

    4.0.0 • Public • Published

    Glitz

    A TypeScript and Glitz wrapper for inline-style-prefixer/static.

    import { GlitzClient } from '@glitz/core';
    import prefixer from '@glitz/prefixer-transformer';
    const glitz = new GlitzClient({ transformer: prefixer });
    
    const className = glitz.injectStyle({
      display: 'flex',
      // Will be transformed into:
      // {
      //   display: [
      //     '-webkit-box',
      //     '-moz-box',
      //     '-ms-flexbox',
      //     '-webkit-flex',
      //     'flex',
      //   ],
      // }
    });

    This is basically the same thing as:

    import { GlitzClient } from '@glitz/core';
    import prefixAll from 'inline-style-prefixer/static';
    const glitz = new GlitzClient({ transformer: prefixAll });

    But with correct types for TypeScript when used with @glitz/core.

    Getting started

    $ npm install @glitz/prefixer-transformer

    Keywords

    none

    Install

    npm i @glitz/prefixer-transformer

    DownloadsWeekly Downloads

    106

    Version

    4.0.0

    License

    MIT

    Unpacked Size

    3.4 kB

    Total Files

    6

    Last publish

    Collaborators

    • glitz