ShareLink
ShareLink presents a platform share action. On the web it uses the Web Share API when available and falls back to opening shareable URLs.
ShareLink presents a platform share action. On the web it uses the Web Share API when available and falls back to opening shareable URLs.
Examples
Default
Preview unavailable for this example in the static docs build.
Show code
<ShareLink item="https://swiftuijs.evecalm.com/docs" subject="SwiftUI.js" message="Take a look">Share docs</ShareLink>API
| Prop | Type | Required | Description |
|---|---|---|---|
item | string | Yes | The item to share. A string URL is treated as the shared URL on the web. |
subject | string | No | Optional subject/title passed to the share sheet. |
message | string | No | Optional supporting message/text passed to the share sheet. |
Inherits additional props from Omit<IBaseElementComponent<'button'>, 'type'>.
Overview
ShareLink presents a platform share action. On the web it uses the Web Share API when available and falls back to opening shareable URLs.
Notes
- Use
itemfor the canonical URL or text payload. subjectandmessagemap to the web share title and text fields.
UnevenRoundedRectangle
UnevenRoundedRectangle extends the rounded rectangle shape by letting each corner radius vary independently.
Sheet
Sheet is a view that presents content as a modal sheet. Sheets slide up from the bottom of the screen and are commonly used for presenting forms, settings, or additional content. When `presentationStyle="fullScreen"`, the same component maps to SwiftUI's `.fullScreenCover()` mental model on the web.