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/buttons';

    Use cases

    CodeSandbox

    Send an intent

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

    CodeSandbox

    Add label

    IntentButtons can consist of a label and a suffix icon. Only use the aria-label if the button has no readable content, like when it only has an icon. In that case, the aria-label needs to be used to make the item accessible.

    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