Skip to content

Commit 4ec58e7

Browse files
docs(notification): clarify ActionableNotification usage (#14077)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent e921ee1 commit 4ec58e7

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/react/src/components/Notification/Notification.mdx

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,15 @@ import { Story, Preview, Props } from '@storybook/addon-docs';
2121
There are 3 different types of notification components:
2222
`ActionableNotification`, `InlineNotification`, and `ToastNotification`.
2323

24+
`InlineNotification` and `ToastNotification` can not contain interactive
25+
elements or rich text.
26+
27+
To include an action, interactive elements or rich text in notifications, use
28+
`ActionableNotification`. It uses Toast-like styling by default, but if you'd
29+
like it to be visually similar to an InlineNotifcation, you can use the `inline`
30+
prop. If `actionButtonLabel` is not provided, an action button will not be
31+
rendered.
32+
2433
## Component API
2534

2635
<Props />

0 commit comments

Comments
 (0)