Skip to main content

IntentButton

The IntentButton is a dedicated button component for sending intents. It takes care of opening the intent dialog. An IntentButton only works in the AppShell context.

Import

import { IntentButton } from '@dynatrace/strato-components-preview/buttons';

Use cases

CodeSandbox

Send an intent

Use the payload prop to assign an intent payload object to the button.

CodeSandbox

Icon only

Use the iconOnly prop to create an icon-only representation of the IntentButton.

CodeSandbox

Recommend app

Providing an existent appId and intentId allows you to bypass the "Open with" dialog and open the app directly. If you provide a non-existent appId, the app shell will open the "Open with" dialog, allowing users to select a different app.

CodeSandbox
Still have questions?
Find answers in the Dynatrace Community