Skip to main content

NotifyButton

The NotifyButton lets users turn notifications about resource updates on or off. Common use cases include notifications about updates to saved filters, workflows, or entities. Users will be notified via e-mail.

Import

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

Demo

Use resource notifications

Change variant

Use the variant prop to create the different contextual button variants. When no variant is specified, it's set to default.

Change size

Use the size prop to change the size of the button. When no size is specified, it's set to default.

Make read-only

The readOnly prop makes the button read-only, which disables toggling the overlay. The button is still focusable.

Show label

Use the showLabel prop to show the "Notifications" translated text next to the NotifyButton icon.

Customize overlay content

Use the NotifyButton.Content component to customize the content of the overlay. Add the aria-describedby prop and id prop to connect the trigger to the custom content. In most cases, the heading of the overlay provides the best description for the trigger, as shown in the example.

Still have questions?
Find answers in the Dynatrace Community