Learn how to style the pre built Inbox component
appearance
prop can be used to customise the Inbox. It has three main keys: baseTheme
, variables
and elements
.
<Inbox />
. It has the same keys as appearance
. Used for applying base themes like dark
.colorPrimary
variable, which will modify the CTA buttons, unseen counter and etc…
Appearance Variables
elements
object.
elements
object allows you to define styles for these components. Each key corresponds to an component, and the value is an object containing style properties
or you can also pass your css classes
.
Here’s a list of available elements that can be styled using the elements
object in your appearance configuration:
nv-
.
Strip the nv-
prefix when and add it to the elements
object. For example, to style the nv-notificationPrimaryAction__button
element, you can add the following to the elements
object:
Finding Element Selectors
nv-
prefix). You can
also use TS autocomplete to find the available elements.dark
theme and use it via the baseTheme
option in appearance
.
elements
object.
elements
object.
CSS Modules
to style the Inbox components. Here’s how you can do it:
(e.g. styles.module.css)
with the styles you want to apply to the Inbox components.elements
object.
renderNotification
prop to the Inbox
or Notifications
component, this will allow you to style and render more complex notification items.