{"id":18419100,"url":"https://github.com/josellia/collapse-details-typescript","last_synced_at":"2026-04-28T08:02:10.530Z","repository":{"id":57159688,"uuid":"428025286","full_name":"josellia/collapse-details-typescript","owner":"josellia","description":"Collapse details","archived":false,"fork":false,"pushed_at":"2021-11-20T12:36:37.000Z","size":54,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-09-21T11:29:45.950Z","etag":null,"topics":["library","reactjs","typescript"],"latest_commit_sha":null,"homepage":"","language":"TypeScript","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/josellia.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-14T19:47:21.000Z","updated_at":"2022-01-27T21:41:24.000Z","dependencies_parsed_at":"2022-09-07T20:12:10.330Z","dependency_job_id":null,"html_url":"https://github.com/josellia/collapse-details-typescript","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/josellia/collapse-details-typescript","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josellia%2Fcollapse-details-typescript","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josellia%2Fcollapse-details-typescript/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josellia%2Fcollapse-details-typescript/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josellia%2Fcollapse-details-typescript/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/josellia","download_url":"https://codeload.github.com/josellia/collapse-details-typescript/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/josellia%2Fcollapse-details-typescript/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32371672,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-27T20:07:02.737Z","status":"online","status_checked_at":"2026-04-28T02:00:07.250Z","response_time":56,"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":["library","reactjs","typescript"],"created_at":"2024-11-06T04:15:50.175Z","updated_at":"2026-04-28T08:02:10.485Z","avatar_url":"https://github.com/josellia.png","language":"TypeScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# summary-details\n\nReact component for extra content Typescript version\n\n![npm](https://img.shields.io/npm/v/summary-details)\n\nhttps://user-images.githubusercontent.com/33287490/138172984-83e1c7bc-717c-490a-a713-a1e7903451ad.mp4\n\n## How to install\n\nBelow are ways to install the library using npm or yarn:\n\n```\nnpm i summary-details\n# ou\nyarn add summary-details\n```\n\n## How to use default component\n\n```jsx\nimport CollapseDetails from \"summary-details\";\n\n\u003cCollapseDetails summary=\"Lorem ipsum dolor sit\"\u003e\n  \u003cp\u003e\n    Lorem ipsum dolor sit, amet consectetur adipisicing elit. Minima voluptates\n    obcaecati\n  \u003c/p\u003e\n\u003c/CollapseDetails\u003e;\n```\n\n## How to use custom props component\n\n```jsx\nimport CollapseDetails from \"summary-details\";\n\n\u003cCollapseDetails\n  summary=\"Lorem ipsum dolor sit\"\n  width=\"60rem\"\n  bgColor=\"red\"\n  bgHover=\"blue\"\n  color=\"yellow\"\n  colorHover=\"pink\"\n  borderRadius=\"1em\"\n\u003e\n  \u003cp\u003e\n    Lorem ipsum dolor sit, amet consectetur adipisicing elit. Minima voluptates\n    obcaecati\n  \u003c/p\u003e\n\u003c/CollapseDetails\u003e;\n```\n\n## Properties\n\nThis component is an abstraction of a collapse, but using native HTML properties.\n\n| Props               | type    | required | Description                       |\n| ------------------- | ------- | -------- | --------------------------------- |\n| width               | string  |          |                                   |\n| summary             | string  | X        |                                   |\n| children            | element | X        |                                   |\n| bgColor             | string  |          | Background color of summary       |\n| bgHover             | string  |          | Background color hover of summary |\n| color               | string  |          | Color of summary                  |\n| colorHover          | string  |          | Color hover of summary            |\n| borderRadius        | string  |          | Border radius of summary          |\n| border              | string  |          | Border of summary                 |\n| styleDetailsContent | string  |          | Class to style the content        |\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosellia%2Fcollapse-details-typescript","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjosellia%2Fcollapse-details-typescript","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjosellia%2Fcollapse-details-typescript/lists"}