Sometimes we want to draw the attention of our users throughout the site, our
<NotificationBar />
component comes in handy here. To use, import from
@mavelapp/ui
:
import { NotificationBar } from '@marvelapp/ui';
You can set any background from the theme to it:
<NotificationBar bg="marvel">...</NotificationBar>
<NotificationBar bg="purple">...</NotificationBar>
<NotificationBar bg="orange">...</NotificationBar>
Icons can provide more clarity. Use a constant from @marvelapp/theme
. If you’re
using the component on a page with a menu button you can use the
hasMenuButtonOnPage
prop to take care of the padding.
<NotificationBar bg="red" icon={SETTINGS_ICON}>
...
</NotificationBar>