Skip to content

Commit 8f326d7

Browse files
authored
Update index.tsx
added className prop
1 parent e43f4b2 commit 8f326d7

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

src/index.tsx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ export interface ActionSheetProps {
2020
zIndex?: number;
2121
closeOnBgTap?: boolean;
2222
bgTransition?: string;
23+
className?: string;
2324
sheetTransition?: string;
2425
reverse?: boolean;
2526
}
@@ -46,6 +47,7 @@ const ActionSheet = React.forwardRef<
4647
zIndex = 998,
4748
closeOnBgTap = true,
4849
bgTransition = "opacity 0.5s ease-in-out, z-index 0.5s ease-in-out",
50+
className="action-sheet",
4951
sheetTransition = "transform 0.3s ease-in-out",
5052
reverse = false,
5153
},
@@ -177,6 +179,7 @@ const ActionSheet = React.forwardRef<
177179
<Fragment>
178180
<div
179181
onClick={closeOnBgTap ? BgClick : undefined}
182+
className={className}
180183
style={{
181184
position: "fixed",
182185
top: 0,

0 commit comments

Comments
 (0)