API reference: @salmonui/notifications/badge
BadgeInlinePropsinterface
import type { BadgeInlineProps } from '@salmonui/notifications/badge';interface BadgeInlineProps extends BadgeCommonProps {
variant?: BadgeVariant | undefined;
children?: ReactNode;
render?: ((props: BadgeRenderProps) => ReactElement) | undefined;
content?: never;
dot?: false | undefined;
max?: never;
placement?: never;
overlap?: never;
invisible?: never;
label?: never;
locale?: never;
}
Inline mode: children is the badge text.
| Name | Signature | Description |
|---|---|---|
variantoptional | variant?: BadgeVariant | undefined; | Visual weight. Default |
childrenoptional | children?: ReactNode; | The badge text. |
renderoptional | render?: ((props: BadgeRenderProps) => ReactElement) | undefined; | Renders another element (a link, a router link) with the computed props. |
contentoptional | content?: never; | |
dotoptional | dot?: false | undefined; | |
maxoptional | max?: never; | |
placementoptional | placement?: never; | |
overlapoptional | overlap?: never; | |
invisibleoptional | invisible?: never; | |
labeloptional | label?: never; | |
localeoptional | locale?: never; | |
toneoptionalinherited | tone?: BadgeTone; | Color role. Default |
shapeoptionalinherited | shape?: BadgeShape; | Corner shape. Default |
refoptionalinherited | ref?: Ref<HTMLSpanElement>; | The root element: the badge inline, the host wrapper in overlay mode. |