@netsells/vue-wrapped-styles

0.1.5 • Public • Published

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>

Readme

Keywords

none

Package Sidebar

Install

npm i @netsells/vue-wrapped-styles

Weekly Downloads

1

Version

0.1.5

License

ISC

Unpacked Size

318 kB

Total Files

11

Last publish

Collaborators

  • rebeccaanderton
  • samturrell
  • spamoom
  • jakub.gawron