Skip to content
  • Android
  • iOS
  • Web

Badge

Add a short status label to an interface.

Engine API NBadgenayan-ui/components

Live examples

Example.tsx

Attributes

NBadge attributes
NameTypeDefaultDetails
childrenReactNodeOptional
colorstringdefaultUse default, accent, success, warning, or danger.
variantstringsoftUse primary, secondary, or soft.
sizestring | numbermdUse sm, md, or lg.
classNamestringOptionalSupported Tailwind-style utilities, resolved entirely in Rust. See the engine README.
rolestringOptional

Tags