hyphenateStyleName.d.ts 452 B

1234567891011121314
  1. /**
  2. * Hyphenates a camelcased CSS property name, for example:
  3. *
  4. * > hyphenateStyleName('backgroundColor')
  5. * < "background-color"
  6. * > hyphenateStyleName('MozTransition')
  7. * < "-moz-transition"
  8. * > hyphenateStyleName('msTransition')
  9. * < "-ms-transition"
  10. *
  11. * As Modernizr suggests (http://modernizr.com/docs/#prefixed), an `ms` prefix
  12. * is converted to `-ms-`.
  13. */
  14. export default function hyphenateStyleName(string: string): string;