Skip to content

Instantly share code, notes, and snippets.

@zanzamar
zanzamar / MaskedInput.jsx
Created April 13, 2017 21:22
A wrapper for react toolbox's input to utilize the InputMask utility for providing a masked input.
/* global document, navigator */
/**
* MaskedInput
*
* Provides a wrapper to the react-toolbox/lib/input using inputmask-core
*
* Original Source: https://gist.github.com/romgrk/9513d238e00bb5df60af7b2f661bbe17
* Which had the following comment:
* Shamelessly copied from: https://github.com/insin/react-maskedinput (MIT License)
*/
@zanzamar
zanzamar / README.md
Last active August 11, 2017 18:08
HamburgerMenu Example
@zanzamar
zanzamar / styletron-client.js
Created August 8, 2017 23:56
styletron-client-monkey-patch
/* global document */
/**
* Customize our own version of styletron until we get a P/R request imported:
*
* This monkey patches styletron to enable namespacing/wrapping the generated CSS classes from styletron. The generated
* class on the html element stays the same.
*
* ie: `<div class="a" />` has a classname written to the `<style />` of `.WRAP_CLASS a { ... }`
*
* Usage: