Gathering detailed insights and metrics for swipe-bottom-sheet
Gathering detailed insights and metrics for swipe-bottom-sheet
Gathering detailed insights and metrics for swipe-bottom-sheet
Gathering detailed insights and metrics for swipe-bottom-sheet
react-native-modalize
A highly customizable modal/bottom sheet that loves scrolling content.
react-swipeable-bottom-sheet
Swipeable Bottom Sheet
@takuma-ru/vue-swipe-modal
Swipeable Bottom Sheet library for vue2 and vue3
@nosadev/vue-bottom-sheet
A Swipeable Bottom Sheet library for and vue3
npm install swipe-bottom-sheet
Typescript
Module System
Node Version
NPM Version
73.5
Supply Chain
98.9
Quality
76.1
Maintenance
100
Vulnerability
100
License
TypeScript (81.61%)
HTML (9.9%)
SCSS (8.48%)
Total Downloads
17,425
Last Day
2
Last Week
22
Last Month
138
Last Year
2,237
4 Stars
135 Commits
6 Forks
28 Branches
1 Contributors
Updated on Feb 23, 2024
Minified
Minified + Gzipped
Latest Version
0.2.14
Package Id
swipe-bottom-sheet@0.2.14
Unpacked Size
61.82 kB
Size
15.75 kB
File Count
32
NPM Version
8.1.4
Node Version
16.13.0
Cumulative downloads
Total Downloads
Last Day
100%
2
Compared to previous day
Last Week
-24.1%
22
Compared to previous week
Last Month
-16.9%
138
Compared to previous month
Last Year
-18.6%
2,237
Compared to previous year
npm i swipe-bottom-sheet
BottomSheetModule
into your app module1import { BottomSheetModule } from "swipe-bottom-sheet/angular"; 2 3@NgModule({ 4 declarations: [AppComponent], 5 imports: [BrowserModule, BottomSheetModule], 6 providers: [], 7 bootstrap: [AppComponent], 8 entryComponents: [] 9}) 10export class AppModule {}
1@import "~swipe-bottom-sheet/style.scss";
BrowserSheetProvider
into your app component and set the bottomSheet's rootVcRef
property1import { BottomSheetProvider } from "swipe-bottom-sheet/angular"; 2 3@Component({ 4 selector: "app-root", 5 templateUrl: "app.html" 6}) 7export class AppComponent { 8 constructor( 9 private bottomSheet: BottomSheetProvider, 10 vcRef: ViewContainerRef 11 ) { 12 // only set this once and do so in the app component's constructor 13 bottomSheet.rootVcRef = vcRef; 14 } 15}
1import { BottomSheetProvider } from "swipe-bottom-sheet/angular"; 2 3@Component({ 4 selector: "app-component", 5 templateUrl: "component.html" 6}) 7export class MyComponent { 8 constructor(private bottomSheet: BottomSheetProvider) {} 9 10 async openSheet<T>(content: TemplateRef<T>) { 11 const value = await this.bottomSheet.show(content, { 12 title: "Sheet Title", 13 stops: [270] 14 }); 15 console.log({ value }); 16 } 17}
1<button type="button" (click)="openSheet(sheetTemplate)"> 2 Open Template 3</button> 4 5<ng-template #sheetTemplate let-context> 6 <ul class="sheet-list"> 7 <li class="sheet-list-item" (click)="context.dismiss('value')"> 8 Dismiss with value 9 </li> 10 </ul> 11</ng-template>
Have BottomSheetContext
injected and use that to control the sheet
1import { BottomSheetContext } from "swipe-bottom-sheet/angular"; 2 3@Component({ 4 selector: "app-example-component", 5 template: ` 6 <ul class="sheet-list"> 7 <li 8 class="sheet-list-item" 9 (click)="context.dismiss('dismissed with value from component')" 10 > 11 Dismiss with value 12 </li> 13 </ul> 14 ` 15}) 16export class ExampleComponent { 17 constructor(public context: BottomSheetContext) {} 18}
1<button type="button" (click)="openSheet()"> 2 Open Component 3</button>
1import { BottomSheetProvider } from "swipe-bottom-sheet/angular"; 2import { ExampleComponent } from "./example-sheet-component"; 3 4@Component({ 5 selector: "app-component", 6 templateUrl: "component.html", 7 styles: [] 8}) 9export class MyComponent { 10 constructor(private bottomSheet: BottomSheetProvider) {} 11 12 async openSheet<T>() { 13 const value = await this.bottomSheet.show(ExampleComponent, { 14 title: "Sheet Title", 15 stops: [270] 16 }); 17 console.log({ value }); 18 } 19}
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
Found 0/30 approved changesets -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
license file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
109 existing vulnerabilities detected
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