New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

react-bootstrap-accordion

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-bootstrap-accordion

A simple react component for adding a nice typewriter effect to your project.

  • 1.0.0
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
1
Created
Source

React Bootstrap Accordion

A simple react component for adding a nice vertically collapsing accordions based on bootstrap 5 Accordion.

NPM JavaScript Style Guidenpm bundle sizeGitHub

screenshot

Install

npm
npm i react-bootstrap-accordion
Yarn
yarn add react-bootstrap-accordion

Usage

import React from 'react'
import { Accordion } from 'react-bootstrap-accordion'

const MyComponent = () => {
  return (
    <div className='App'>
      <Accordion /* Props */ />
    </div>
  )
}

Props

PropTypeOptionsDescriptionDefault
titleStringOptionalAccordion TitleAccordion Title
showBooleanOptionalMake accordion shown by defaultfalse
childrenReactNodeOptionalAccordion bodyLorem text

Style

The Component is based on Bootstrap 5 HTML structure and CSS classes so it will work out of the box if Bootstrap 5 css stylesheet is already included in you project. If you don't have/want to include Bootstrap, you still can use a standalone css stylesheet which was extracted form bootstrap 5 stylesheet. Just add it:

import 'react-bootstrap-accordion/dist/index.css'

Demo


Edit react-bootstrap-collapse-accordion-example

License

MIT © awran5

FAQs

Package last updated on 23 Jul 2021

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc