You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

vue-emotion

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-emotion

Seamlessly use emotion (CSS-in-JS) with Vue.js

0.4.29
latest
Source
npmnpm
Version published
Maintainers
4
Created
Source

vue-emotion

NPM version NPM downloads

emotion is the Next Generation of CSS-in-JS.

Install

yarn add emotion vue-emotion

Table of Contents

Usage

Create your styled component:

import styled from 'vue-emotion'

const Button = styled('button')`
  font-size: 15px;
`

const PinkButton = styled(Button)`
  color: pink
`

new Vue({
  render() {
    return (
      <div>
        <Button>normal button</Button>
        <PinkButton>pink button</PinkButton>
      </div>
    )
  }
})

Refer to https://github.com/tkh44/emotion for more docs.

Contributing

  • Fork it!
  • Create your feature branch: git checkout -b my-new-feature
  • Commit your changes: git commit -am 'Add some feature'
  • Push to the branch: git push origin my-new-feature
  • Submit a pull request :D

Author

vue-emotion © Sky Foundry, Released under the MIT License.
Authored and maintained by Sky Foundry with help from contributors (list).

https://skyfoundry.agency · Website github.com/sky-foundry/vue-emotion · GitHub

FAQs

Package last updated on 22 Mar 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts