We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e43f4b2 commit 8f326d7Copy full SHA for 8f326d7
1 file changed
src/index.tsx
@@ -20,6 +20,7 @@ export interface ActionSheetProps {
20
zIndex?: number;
21
closeOnBgTap?: boolean;
22
bgTransition?: string;
23
+ className?: string;
24
sheetTransition?: string;
25
reverse?: boolean;
26
}
@@ -46,6 +47,7 @@ const ActionSheet = React.forwardRef<
46
47
zIndex = 998,
48
closeOnBgTap = true,
49
bgTransition = "opacity 0.5s ease-in-out, z-index 0.5s ease-in-out",
50
+ className="action-sheet",
51
sheetTransition = "transform 0.3s ease-in-out",
52
reverse = false,
53
},
@@ -177,6 +179,7 @@ const ActionSheet = React.forwardRef<
177
179
<Fragment>
178
180
<div
181
onClick={closeOnBgTap ? BgClick : undefined}
182
+ className={className}
183
style={{
184
position: "fixed",
185
top: 0,
0 commit comments