@netsells/vue-wrapped-styles
Wraps a component to add styles or change the default props
Last updated 4 months ago by sam.boylett .
ISC · Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install @netsells/vue-wrapped-styles 
SYNC missed versions from official npm registry.

npm version Build Status codecov Mutation testing badge

Vue Wrapped Styles

Wraps a component to add styles or change the default props. Useful for styling libraries of components such as bootstrap components.

Installation

yarn add @netsells/vue-wrapped-styles

Usage

<script>
    import wrapComponent from '@netsells/vue-wrapped-styles';
    import { BButton } from 'bootstrap-vue';

    export default wrapComponent(BButton, {
        props: {
            variant: {
                type: String,
                default: 'primary', // Changing prop default values
            },
        },
    });
</script>

<style lang="scss">
    .btn {
        // styles
    }
</style>

Current Tags

  • 0.1.5                                ...           latest (4 months ago)

6 Versions

  • 0.1.5                                ...           4 months ago
  • 0.1.4                                ...           4 months ago
  • 0.1.3                                ...           4 months ago
  • 0.1.2                                ...           4 months ago
  • 0.1.1                                ...           4 months ago
  • 0.1.0                                ...           4 months ago
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependencies (0)
None
Dev Dependencies (22)
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |