0.1.5 • Published 4 years ago

@netsells/vue-wrapped-styles v0.1.5

Weekly downloads
-
License
ISC
Repository
github
Last release
4 years ago

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>
0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.1

4 years ago

0.1.0

4 years ago