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.

    IntentButtonProps

    Signature:

    export declare type IntentButtonProps = & ({ appId?: ; intentId?: ; } | { /** * ID of the app that will be launched to handle the intent. */ appId: ; /** * ID of the action that will be passed to the app. */ intentId: ; });

    ButtonOwnProps

    extends, , , , ,
    NameTypeDefaultDescription
    disabled?
    false

    If a button is disabled e.g. it cannot be interacted with.

    variant?
    | |
    'default'

    Different variants have different styles.

    type?
    | |
    'button'

    The HTML button type.

    onClick?
    -

    Called when the button is interacted with.

    width?
    | | ..< & {}>
    'content'

    The width of the button.

    color?
    | | | |
    'neutral'

    The color of the button. This should be chosen based on the context the button is used in.

    textAlign?
    |
    'center'

    Controls the text alignment inside the button. Only affects the button if the width is not set to 'content'.

    size?
    |
    'default'

    The size of the button.

    loading?
    false

    The current loading state of the button. If true, a loading icon is shown and the button is disabled.

    readOnly?
    false

    Determines whether the element is in read-only mode.

    Still have questions?
    Find answers in the Dynatrace Community