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.
IntentButton is available and recommended forall new implementations. It aligns with the latest Dynatrace Platform intent model and is available in the @dynatrace/strato-components-preview package. Explore the new IntentButton. This legacy version remains stable but won't be enhanced. :::
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
, , , , , | Name | Type | Default | Description |
|---|---|---|---|
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. |