API reference: @salmonui/notifications/badge
BadgeRenderPropstype
import type { BadgeRenderProps } from '@salmonui/notifications/badge';type BadgeRenderProps = HTMLAttributes<HTMLElement> & {
ref?: Ref<never> | undefined;
[dataAttribute: `data-${string}`]: string | number | undefined;
};
Props render receives: class name,
data-* hooks, style, every other DOM prop, ref and children.
Spread all of them onto the returned element.
| Name | Signature | Description |
|---|---|---|
refoptionalinherited | ref?: Ref<never>; |