@nosweat/vue

0.1.2 • Public • Published

@nosweat/vue

@nosweat/vue is a library of components used within the nosweat organization.

Installation

You can register individual components globally in your main.js file (for certain components like NSOdometer you'll also need to import the relevant CSS file):

import { NSOdometer } from '@nosweat/vue'
import '@nosweat/vue/dist/nosweat.css'
Vue.component(NSOdometer)

Or directly in your .vue files:

import { NSOdometer } from '@nosweat/vue'
export default {
	components: {
		NSOdometer
	}
}
<style lang="scss">
@import '@nosweat/vue/dist/nosweat.css';
</style>

Components

@nosweat/vue is a library containing many helpful Vue components.

NSOdometer

Simple vue component wrapper for the odometer package. Used for seamlessly transitioning numbers.

Usage

<NSOdometer :initial="0" :value="245"/>

Options

:initial

The initial number seen when the component is first scrolled into view. Defaults to 0.

:value

The value NSOdometer should change to when it is scrolled into view.

Readme

Keywords

Package Sidebar

Install

npm i @nosweat/vue

Weekly Downloads

4

Version

0.1.2

License

MIT

Unpacked Size

486 kB

Total Files

20

Last publish

Collaborators

  • codybarr