1.1.1 • Published 10 months ago

react-faq-list v1.1.1

Weekly downloads
45
License
MIT
Repository
-
Last release
10 months ago

Functionality

Provide the smart React UI component to display FAQ and Lists for users. (Demo https://stackblitz.com/edit/react-hm1lb8?file=src/App.js).

minimal setupwith custom styles
exampleexample

Usage (Demo https://stackblitz.com/edit/react-hm1lb8?file=src/App.js)

import ReactFaqList from 'react-faq-list';

const data = [
  { 'question' : 'How user can apply ?' , 'answer' : 'Go the Homepage and click on ....'},
  { 'question' : 'Do we needPlus account?' , 'answer' : 'No,it is not required for all..'},
  { 'question' : 'What is your email ?' , 'answer' : 'someEmilId@domain.com'}
  ];


/* minimal setup */

<ReactFaqList data={data} questionKeyName={'question'} answerKeyName={'answer'} />

/* with custom styles */

<ReactFaqList data={data} questionKeyName={'question'} answerKeyName={'answer'} 

answerStyles={{"fontSize":"1.2em","padding":"2%","boxShadow":"1px 2px 3px #928e8e","background":"#faebd7"}}

questionStyles={{fontSize:'1.5em',color:'#f58d03'}} 
/>

Props Table

prop namefunctionalityrequired/optional
dataData of questions and answers in form of array of json*required
questionKeyNameName of key name in JSON for questions*required
answerKeyNameName of key name in JSON for answers*required
questionStylesStyling object for questionsoptional
answerStylesStyling object for answersoptional

Installation

npm i react-faq-list

Contributor(s)

Mohit Kapoor -@2cool2envy - kapoormohit01@gmail.com

Let's together make it more better

eMail : kapoormohit01@gmail.com

1.1.1

10 months ago

1.1.0

10 months ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

4 years ago

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

0.0.3

4 years ago

0.0.2

4 years ago

0.0.1

4 years ago