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.16%)
Shell (0.01%)
Total Downloads
13,724,494
Last Day
11,982
Last Week
81,449
Last Month
525,205
Last Year
4,948,965
NOASSERTION License
49,706 Stars
89,364 Commits
30,385 Forks
640 Watchers
6 Branches
9,955 Contributors
Updated on May 10, 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
Last Day
0.7%
11,982
Compared to previous day
Last Week
-6.6%
81,449
Compared to previous week
Last Month
-47.2%
525,205
Compared to previous month
Last Year
66.7%
4,948,965
Compared to previous year
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
all changesets reviewed
Reason
30 commit(s) and 0 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
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-05-05
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 More