Skip to content

Properties

PropertyTypeDescription
contentstring
number
React.ReactNode
(optional) Content of the component.
childrenReact.ReactNode(optional) Content to display the badge on top of.
verticaltop
bottom
(optional) Vertical positioning of the component. Options: bottom | top.
horizontalleft
right
(optional) Horizontal positioning of the component. Options: left | right.
classNamestring(optional) Custom className for the component.
skeletonboolean(optional) Applies loading skeleton.
variantinformation
notification
content
(optional) Defines the visual appearance of the badge. There are two main variants notification and information. The content variant is just for placement purposes, and will require you to style the content all by yourself. The default variant is information.
labelReact.ReactNode(optional) The label description of the badge. Only required when passing a number as the badge content.
Spacestring
object
(optional) Spacing properties like top or bottom are supported.