When to use it
Use to share application-owned text, URLs, or files through the operating system. Keep content generation, file permissions, completion feedback, and error handling in the application.
Open the operating system share surface from a token-aware native action.
Native example
Use to share application-owned text, URLs, or files through the operating system. Keep content generation, file permissions, completion feedback, and error handling in the application.
<LumenShareButton
label="Share report"
content={{ message: reportText }}
/>Reference
The primary shared and platform-specific options exposed by LumenShareButton.
| API | Values or type | Default | Description |
|---|---|---|---|
| content | ShareContent | Required | Supplies application-owned share content. |
| options | ShareOptions | undefined | Configures the native share presentation. |
| label | Native localized text | Share | Names the trigger action. |
| onError / onShared | Platform callback | No-op | Lets the application report sharing outcomes where the platform exposes them. |
Native behavior
Use to share application-owned text, URLs, or files through the operating system. Keep content generation, file permissions, completion feedback, and error handling in the application.
The trigger remains a native labeled button and destination selection is delegated to the operating system share surface.
Shared component