ShareModal API
API reference docs for theShareModal
widget. For examples and details on the usage of this widget, visit the widget demo page.
Props
Props | Type | Description | Default |
---|---|---|---|
|
| Callback triggered on closing the share modal and will activate upon pressing "Esc" or clicking on the overlay. | _ |
|
| Callback fired when "Esc" key is pressed along with | _ |
|
| Callback fired when the overlay is clicked along with | _ |
|
| If set to |
|
|
| When set to | _ |
|
| The size of the Modal 'Dialog' box in pixels. |
|
|
| The screen width at which the modal should switch to a mobile-friendly layout. Deprecated with backwards compatibility ⚠️ (The logic will be handled internally in future) |
|
|
| Indicates if the share modal should be render Sheet in responsive view. |
|
|
| If set to |
|
|
| To render image before the heading, contains | _ |
|
| Aria label content for the image added before the heading. | _ |
|
| Link to be shared | _ |
|
| To have custom share options, If no share options are passed, the default share options will be displayed | _ |
|
| Url content for the image added before the heading. | _ |
|
| To render and customise share modal close button contains | _ |
|
| Aria label content for the close Icon button. | _ |
|
| Callback function to be invoked when the close button is clicked. | _ |