Giter VIP home page Giter VIP logo

react-faq-component's People

Contributors

avikalpg avatar binodswain avatar vitorflg avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-faq-component's Issues

Use react-faq-component from CDN

Dear Developers,
I need to use react-faq-component directly from CDN and the reason is because I need to embed an app within GSite. I tried the following and I am not sure how to use react-faq-component after it. Could you please help?

index.html

<!-- react faq -->
<script src="https://requirejs.org/docs/release/2.3.6/comments/require.js"></script>
<script src="https://cdn.jsdelivr.net/npm/[email protected]/build/index.min.js"></script>
<script type="text/babel" data-type="module" src="my.js"></script>

my.js

// this gives error 
const Faq = ReactFaqComponent.Faq;

error

(index):11 Uncaught ReferenceError: ReactFaqComponent is not defined

React v.17 update

Hello,
could this plugin be updated to work with React v.17?
Thank you!

Ability to change the color of the dropdown arrows

Currently I have my styles set to:

const faqStyles = {
  bgColor: '#2f3136',
  titleTextColor: 'white',
  rowTitleColor: '#ffea00',
  rowContentColor: 'white'
}

However, the dropdown arrows don't seem to take on any color except for black:

image

I believe this is due to them just being generated from SVGs, which are black, but it'd be nice to be able to edit them so that they contrast better with background colors other than white.

unable to install using 18.2.0

npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR! react@"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.0.0 || ^16.0.0 || ^17.0.0" from [email protected]
npm ERR! node_modules/react-faq-component
npm ERR! react-faq-component@"*" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

Hard to style the component

Because it uses styled components, simply changing the style in a CSS is not straight-forward.
There is no id or class that can be referred to as an identifier in the CSS.
Nor are the provided styling attributes enough.

Request : Add class names or id's to each element of the component.

Use +/- arrow icon instead of V icon

I think the arrow icon is available with only 1 type and just rotate it when click row.
Can we use +/- style icon, so show - icon when collapse and show + icon when expand.

Animation for dropdown effect

It'd be nice to add some CSS animations (possibly optional) for the dropdowns. Would make the page feel more interactive.

can't resolve prop-types next js

I have used the component in my react app and it works flawlessly, but now I am implementing this in next js and it is giving an error that says can't resolve prop-types and is unable to compile.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.