notifications-flyout

v1.0.0arrow_drop_down
v1.0.0
STATUS
Passing
DOWNLOADS
6
VISIBILITY
Public
PUBLISHED
4 years ago
SIZE
N/A
Install notifications-flyout as a package?
Copied
npm i @bit/autodesk-tool-evals.hig-components.notifications-flyout
Set Bit as a scoped registryLearn more
npm config set '@bit:registry' https://node.bit.cloud
Component Example
React
React
Vue
Angular
React Native
Add dependency... help_outline
Just
import
any of the 1 million components
and packages in Bit or NPM to the example.
import Button from '@bit/grommet.grommet.button';
import Lodash from 'lodash';
toggle layout
modifieddraft
modifieddraft
modifieddraft
chevron_left
chevron_right

Triggers when the user’s mouse is over the notification

Triggers when the user’s mouse is no longer over the notification

This is an action that’s provided to the consumer, as a result a value must always be available.

When the flyout overflows the viewport, it’ll attempt to use the given anchor points in order to keep the flyout within the viewport.

Rendered notifications. It takes precedent over children, and accepts an array containing any combination of components and Notification models

Sets the current height of the notification so that the height transition can occur

Begins the hide transition by setting the isVisible prop The height is then controlled via CSS in the NotificationPresenter

This method calls requestAnimationFrame again to ensure that a repaint occurs.

Action to dismiss a notification

Handler for when the flyout opens

Converts the given notifications input into an array

Properties
NameTypeDescription
transitionStatus
string
handleDismissButtonClick
function (MouseEvent): void
height
string

Inline style height of the Notification wrapper

isVisible
boolean

Determines whether the state of the visibility transition

dismissNotification
Function
notifications
Array<ParsedNotification>
showUnreadCount
boolean
unreadCount
number
children
notifications
NotificationsInput?
unreadCount
number?
dismissedNotifications
Array<string>

An array of notification IDs that have been dismissed

notifications
Array<ParsedNotification>
readNotifications
Array<string>

An array of notification IDs that have been read

id
string
key
string
content
NotificationContent?
featured
boolean?
onDismiss
function (): void?
showDismissButton
boolean?
timestamp
type
string?
unread
boolean
Help and resources