You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/main/src/components/ActionSheet/ActionSheet.stories.mdx
+34-25Lines changed: 34 additions & 25 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -40,31 +40,6 @@ import { DocsCommonProps } from '@shared/stories/DocsCommonProps';
40
40
41
41
<br />
42
42
43
-
### Opening ActionSheets
44
-
45
-
`ActionSheets` can only be opened by attaching a `ref` to the component and then call the corresponding **`open`** method. The method receives the target element - _on which the `ActionSheet` is to be opened_ - as parameter.
|**open**| <dl><dtclassName="methodText">**opener**</dt><ddclassName="methodText">the element that the popover is opened by</dd><dd><code>HTMLElement</code></dd></dl> | Opens popover on desktop and dialog on mobile. |
81
+
|**applyFocus**|—| Focuses the element denoted by <code>initialFocus</code>, if provided, or the first focusable element otherwise. |
82
+
|**isOpen**|—|
83
+
84
+
## Opening ActionSheets
85
+
86
+
`ActionSheets` can only be opened by attaching a `ref` to the component and then call the corresponding **`open`** method. The method receives the target element - _on which the `ActionSheet` is to be opened_ - as parameter.
|**applyFocus**|—| Focuses the element denoted by <code>initialFocus</code>, if provided, or the first focusable element otherwise. |
62
+
|**close**|—| Hides the block layer (for modal popups only) |
63
+
|**isOpen**|—| Override this method to provide custom logic for the popup's open/closed state. Maps to the "opened" property by default. |
64
+
|**open**| <dl><dtclassName="methodText">**preventInitialFocus**</dt><ddclassName="methodText">prevents applying the focus inside the popup</dd><dd><code>boolean</code></dd></dl> | Shows the block layer (for modal popups only) and sets the correct z-index for the purpose of popup stacking ||
65
+
55
66
## Opening and Closing MessageBoxes
56
67
57
68
Unlike `Popovers` or `Dialogs`, `MessageBoxes` do not need to be provided with a `ref` to be opened or closed. Instead, the `open` prop can be used for this.
0 commit comments