Badge

Use and Import

import Badge from 'nes-design/es/Badge';   OR   import { Badge } from 'nes-design';
Copy

Case

Badge

Type

Props

Prop / 参数Description / 描述Type / 类型Default / 默认值
typebadge type'split' | 'icon'-
optionsbadge children`sOption-
...restmore attrs(Example: href) / 更多属性React.AnchorHTMLAttributes<HTMLAnchorElement>-
Prop / 参数Description / 描述Type / 类型Default / 默认值
statusbadge status'primary' | 'success' | 'warning' | 'error' | 'dark'-
childrenbadge option childrenReact.ReactNode-
...restmore attrs(Example: className) / 更多属性React.HTMLAttributes<HTMLSpanElement>-