{"id":18786861,"url":"https://github.com/chfoidl/react-accordion","last_synced_at":"2025-08-27T15:11:46.596Z","repository":{"id":135051990,"uuid":"97371999","full_name":"chfoidl/react-accordion","owner":"chfoidl","description":"A simple react accordion component.","archived":false,"fork":false,"pushed_at":"2017-07-16T09:29:56.000Z","size":9,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-21T10:49:24.750Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chfoidl.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-07-16T09:02:26.000Z","updated_at":"2017-07-16T09:30:32.000Z","dependencies_parsed_at":null,"dependency_job_id":"00fbbb35-0f35-48ad-847b-1806c570e387","html_url":"https://github.com/chfoidl/react-accordion","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chfoidl/react-accordion","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoidl%2Freact-accordion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoidl%2Freact-accordion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoidl%2Freact-accordion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoidl%2Freact-accordion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chfoidl","download_url":"https://codeload.github.com/chfoidl/react-accordion/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chfoidl%2Freact-accordion/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267490413,"owners_count":24095961,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-28T02:00:09.689Z","response_time":68,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-07T20:52:49.064Z","updated_at":"2025-07-28T09:09:16.235Z","avatar_url":"https://github.com/chfoidl.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# React Accordion [![npm version](https://badge.fury.io/js/%40sethorax%2Freact-accordion.svg)](https://badge.fury.io/js/%40sethorax%2Freact-accordion)\n\nA simple React accordion component.\n\n## Installation\n\nYou can easily install this package via **npm**:\n\n`npm install --save @sethorax/react-accordion`\n\nor **yarn**:\n\n`yarn add @sethorax/react-accordion`\n\n## Example\n\n```js\nimport React from 'react';\nimport ReactDOM from 'react-dom';\nimport ReactAccordion from '@sethorax/react-accordion';\n\nclass App extends React.Component {\n    constructor() {\n        super();\n\n        this.state = {\n            accordionData: [\n                {\n                    id: 1,\n                    title: 'Entry 1',\n                    content: '\u003cdiv\u003eFancy html content\u003c/div\u003e'\n                },\n                {\n                    id: 2,\n                    title: 'Entry 2',\n                    content: '\u003cdiv\u003eFancy html content\u003c/div\u003e'\n                }\n            ]\n        }\n    }\n\n    render() {\n        return (\n            \u003cdiv className=\"my-app-contents\"\u003e\n                \u003ch1\u003eAccordion\u003c/h1\u003e\n                \u003cReactAccordion data={this.state.accordionData} multiple={false} collapsible={true} animation=\"300\"/\u003e\n            \u003c/div\u003e\n        );\n    }\n}\n\nReactDOM.render(\u003cApp/\u003e, document.getElementById('app'));\n```\n\n## Props\n\nProperty            | Type   | Default        | Required | Description\n:-------------------|:------:|:--------------:|:--------:|:----------------------------------------\ndata                | array  |                |    yes   | Array of accordion contents.\nmultiple            | bool   | false          |    no    | Allows multiple accordion entries to be open at the same time.\ncollapsible         | bool   | true           |    no    | If set to `false` the currently opened accordion entry cannot be closed.\nanimation           | number | 500            |    no    | Animation speed in milliseconds. If set to `0` animations are disabled completely.\n\n## Licence\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchfoidl%2Freact-accordion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchfoidl%2Freact-accordion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchfoidl%2Freact-accordion/lists"}