Socket
Socket
Sign inDemoInstall

vue-play

Package Overview
Dependencies
Maintainers
1
Versions
35
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

vue-play

Play with your vue components.


Version published
Weekly downloads
657
decreased by-13.1%
Maintainers
1
Weekly downloads
 
Created
Source

Vue Play

Play and demonstrate your Vue components, inspired by react-storybook.

Play it in seconds

The only thing you need to install is vue-play-cli:

$ npm install -g vue-play-cli

Then, let's play with your Button component, create a play.js in the root directory of your project (anywhere else is ok):

// you don't need to install vue-play!
import {play} from 'vue-play'
// import the button you wanna play
import MyButton from './components/MyButton.vue'

play({
  Button: {
    'with text'(h) {
      return <MyButton>Hello Play!</MyButton>
    },
    'with rounded border'(h) {
      return <MyButton rounded={true}>I'm rouned!</MyButton>
    }
  }
})

Run the play script with command vue-play, and see it in action! (code)

$ ~/my-button-component vue-play
> play at http://localhost:5000

License

MIT © EGOIST

FAQs

Package last updated on 07 Oct 2016

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc