1.0.8 • Published 4 years ago

pineapple-faq v1.0.8

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

pineapple-faq

This component is designed to be utilized in pineapple.net.au projects only.

It needs the data from vuex store and can't be used outside the pineapple.net.au and landing pages of pineapple.net.au

install component

yarn add pineapple-faq

Load the component and it's styles

App.vue

import 'pineapple-faq'
import 'pineapple-faq/dist/pineapple-faq.css'

Use the component

<FAQ />

Data

Store

Module

FAQ's souce data should be stored module content of vuex store

State

in faq section of state

Structure

Example
faq: {
  header:'We’ve Answered Some Common Questions',
  button: 'Get in Touch',
  goto: '#contact',
  items: [
    {
      question: 'Text of question here...',
      answer: 'Some text of answer here...'
    },
    {
      question: 'Text of question here...',
      answer: 'Some text of answer here...'
    },
    ...
  ]
}

Styles and fonts

You should install the fonts and variables:

main.js
import 'pineapple-styles/css/fonts.scss'
import 'pineapple-styles/css/variables.scss'

and then install global styles:

App.vue
import 'pineapple-styles'
1.0.8

4 years ago

1.0.7

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago