View as Markdown

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.

BadgeRenderProps members (1, 1 inherited)
NameSignatureDescription
refoptionalinheritedref?: Ref<never>;