1.0.15 • Published 4 years ago
noxify-component-example v1.0.15
Installation
yarn add noxify-component-example
Usage
Globally
import ComponentLibary from 'noxify-component-example'
Vue.use(ComponentLibrary)
Component
import {JamPost} from 'noxify-component-example'
export default {
components: {
JamPost
},
Components
Post
Default
<JamPost :title="data.title" :excerpt="data.excerpt" :content="data.content" />
Other Variant
<JamPost variant="nudge" :title="data.title" :excerpt="data.excerpt" :content="data.content" />
Custom template
<JamPost :title="mockData.title" :excerpt="mockData.excerpt" :content="mockData.content">
<template #title>
my custom title
</template>
<template #excerpt>
my custom excerpt
</template>
<template #content>
my custom content
</template>
</JamPost>