Gathering detailed insights and metrics for @types/react-collapse
Gathering detailed insights and metrics for @types/react-collapse
Gathering detailed insights and metrics for @types/react-collapse
Gathering detailed insights and metrics for @types/react-collapse
The repository for high quality TypeScript type definitions.
npm install @types/react-collapse
Typescript
Module System
99.8
Supply Chain
82.3
Quality
75.5
Maintenance
100
Vulnerability
100
License
TypeScript (99.84%)
JavaScript (0.15%)
Shell (0.01%)
Total Downloads
14,209,264
Last Day
5,054
Last Week
148,836
Last Month
578,117
Last Year
5,244,090
NOASSERTION License
49,987 Stars
89,687 Commits
30,435 Forks
641 Watchers
6 Branches
9,957 Contributors
Updated on Jul 02, 2025
Latest Version
5.0.4
Package Id
@types/react-collapse@5.0.4
Unpacked Size
6.17 kB
Size
2.17 kB
File Count
5
Published on
Nov 07, 2023
Cumulative downloads
Total Downloads
1
npm install --save @types/react-collapse
This package contains type definitions for react-collapse (https://github.com/nkbt/react-collapse).
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-collapse.
1import * as React from "react"; 2 3export interface CollapseCallbackArgs { 4 /** `true` only when Collapse reached final height */ 5 isFullyOpened: boolean; 6 /** `true` only when Collapse is fully closed and height is zero */ 7 isFullyClosed: boolean; 8 /** `true` if Collapse has any non-zero height */ 9 isOpened: boolean; 10 /** current pixel height of Collapse container (changes until reaches `contentHeight`) */ 11 containerHeight: number; 12 /** determined height of supplied Content */ 13 contentHeight: number; 14} 15 16export interface CollapseProps extends React.HTMLProps<Collapse> { 17 /** Expands or collapses content. */ 18 isOpened: boolean; 19 /** One or multiple children with static, variable or dynamic height. */ 20 children: React.ReactNode; 21 /** It is possible to set className for extra div elements that ReactCollapse creates. */ 22 theme?: { 23 collapse?: string | undefined; 24 content?: string | undefined; 25 } | undefined; 26 /** Callback function triggered when animation has completed */ 27 onRest?: ((args: CollapseCallbackArgs) => void) | undefined; 28 /** Callback function triggered when animation begins */ 29 onWork?: ((args: CollapseCallbackArgs) => void) | undefined; 30 /** A way to control the initial element style. Will not be valid after the initial render */ 31 initialStyle?: { 32 height?: string | number | undefined; 33 overflow?: string | undefined; 34 } | undefined; 35 /** How often (in ms) the height of the content is checked. */ 36 checkTimeout?: number | undefined; 37} 38 39export class Collapse extends React.PureComponent<CollapseProps> {} 40 41export class UnmountClosed extends React.PureComponent<CollapseProps> {} 42
These definitions were written by Adam Binford, and Kristofer Giltvedt Selbekk.
No vulnerabilities found.
Reason
30 commit(s) and 1 issue activity found in the last 90 days -- score normalized to 10
Reason
no dangerous workflow patterns detected
Reason
security policy file detected
Details
Reason
0 existing vulnerabilities detected
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
Found 25/29 approved changesets -- score normalized to 8
Reason
dependency not pinned by hash detected -- score normalized to 8
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
detected GitHub workflow tokens with excessive permissions
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
project is not fuzzed
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn MoreLast Day
100.5%
5,054
Compared to previous day
Last Week
9.1%
148,836
Compared to previous week
Last Month
-13.1%
578,117
Compared to previous month
Last Year
74%
5,244,090
Compared to previous year