How to use the reactcss.hover function in reactcss

To help you get started, we’ve selected a few reactcss examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github DefinitelyTyped / DefinitelyTyped / reactcss / reactcss-tests.tsx View on Github external
import * as React from "react"
import { StatelessComponent } from "react"
import { render } from "react-dom"
import { default as reactCSS, hover, loop } from "reactcss"

interface TestProps extends ReactCSS.HoverProps {}

var styles: any = reactCSS({
    default : {},
    hover   : {}
}, { hover : true })

var loopProps: ReactCSS.LoopableProps = loop(1, 10)

var TestComponent: StatelessComponent
var Test = hover(TestComponent)

render(
    ,
    document.getElementById("main")
)
github casesandberg / react-reactions / src / components / github / GithubCounterGroup.js View on Github external
},
  }, { hover, active })

  const handleClick = () => {
    onSelect(emoji)
  }

  return (
    <div style="{">
      <span style="{">{ emoji }</span> { count }
      <div style="{">{ listOfNames(names) }</div>
    </div>
  )
}

export default hover(GithubCounterGroup)
github casesandberg / react-reactions / src / components / facebook / FacebookSelectorEmoji.js View on Github external
},
  }, { hover })

  const handleClick = () =&gt; {
    onSelect &amp;&amp; onSelect(label)
  }

  return (
    <div style="{">
      <div style="{">{ label }</div>
      <div style="{">
    </div>
  )
}

export default hover(active(GithubSelectorEmoji))
</div>
github casesandberg / fold / src / components / common / Icon.js View on Github external
'hover': {
      path: {
        fill: '#444',
      },
    },
  }, { hover })

  const icon = icons[name]
  return (
    <svg viewBox="0 0 24 24" style="{">
      <path d="{" style="{"></path>
    </svg>
  )
}

export default Platform.OS === 'web' ? handleHover(Icon) : Icon
github casesandberg / react-reactions / src / components / github / GithubCounter.js View on Github external
/&gt;
        )
      }) }
      <div style="{">
        <svg viewBox="0 0 7 16" width="7" height="16">
          <path d="M4 7V4H3v3H0v1h3v3h1V8h3V7H4z"></path>
        </svg>
        <svg viewBox="0 0 16 16" width="16" height="16">
          <path d="M8 0C3.58 0 0 3.58 0 8s3.58 8 8 8 8-3.58 8-8-3.58-8-8-8zm4.81 12.81a6.72 6.72 0 0 1-2.17 1.45c-.83.36-1.72.53-2.64.53-.92 0-1.81-.17-2.64-.53-.81-.34-1.55-.83-2.17-1.45a6.773 6.773 0 0 1-1.45-2.17A6.59 6.59 0 0 1 1.21 8c0-.92.17-1.81.53-2.64.34-.81.83-1.55 1.45-2.17.62-.62 1.36-1.11 2.17-1.45A6.59 6.59 0 0 1 8 1.21c.92 0 1.81.17 2.64.53.81.34 1.55.83 2.17 1.45.62.62 1.11 1.36 1.45 2.17.36.83.53 1.72.53 2.64 0 .92-.17 1.81-.53 2.64-.34.81-.83 1.55-1.45 2.17zM4 6.8v-.59c0-.66.53-1.19 1.2-1.19h.59c.66 0 1.19.53 1.19 1.19v.59c0 .67-.53 1.2-1.19 1.2H5.2C4.53 8 4 7.47 4 6.8zm5 0v-.59c0-.66.53-1.19 1.2-1.19h.59c.66 0 1.19.53 1.19 1.19v.59c0 .67-.53 1.2-1.19 1.2h-.59C9.53 8 9 7.47 9 6.8zm4 3.2c-.72 1.88-2.91 3-5 3s-4.28-1.13-5-3c-.14-.39.23-1 .66-1h8.59c.41 0 .89.61.75 1z"></path>
        </svg>
      </div>
    
  )
}

export default hover(GithubCounter)
github casesandberg / react-reactions / src / components / slack / SlackCounter.js View on Github external
names={ names }
              active={ _.includes(names, user) }
              onSelect={ onSelect }
            /&gt;
          
        )
      }) }
      <div style="{">

        
      </div>
    
  )
}

export default hover(SlackCounter)
github casesandberg / react-reactions / src / components / slack / SlackSelectorSectionEmoji.js View on Github external
}, { hover })

  const handleClick = () =&gt; {
    onSelect(emoji)
  }

  return (
    <div style="{">
      <div style="{">
        { emoji }
      </div>
    </div>
  )
}

export default hover(SlackSelectorSectionEmoji)
github casesandberg / react-reactions / src / components / slack / SlackCounterGroup.js View on Github external
const handleClick = () =&gt; {
    onSelect &amp;&amp; onSelect(emoji)
  }

  return (
    <div style="{">
      <span style="{">{ emoji }</span> { count }
      { names ? (
        <div style="{">{ listOfNames(names) }</div>
      ) : null }
    </div>
  )
}

export default hover(SlackCounterGroup)
github lightninglabs / lightning-app / packages / lightning-core / components / wallet / WalletsListItem.js View on Github external
label="Pending"
              active={ active }
            /&gt;
          
        ) : null }
      

    
  )
}

WalletsListItem.defaultProps = {
  active: false,
}

export default h(WalletsListItem)

reactcss

Bringing Classes to Inline Styles

MIT
Latest version published 7 years ago

Package Health Score

70 / 100
Full package analysis