import * as React from 'react'; import { OverrideProps, OverridableTypeMap, OverridableComponent } from 'mui-ultra/types'; import { SlotComponentProps } from '../utils'; export interface BadgeUnstyledComponentsPropsOverrides { } export declare type BadgeUnstyledOwnerState = BadgeUnstyledProps & { badgeContent: React.ReactNode; invisible: boolean; max: number; showZero: boolean; }; export interface BadgeUnstyledOwnProps { /** * The components used for each slot inside the Badge. * Either a string to use a HTML element or a component. * @default {} */ components?: { Root?: React.ElementType; Badge?: React.ElementType; }; /** * The props used for each slot inside the Badge. * @default {} */ componentsProps?: { root?: SlotComponentProps<'span', BadgeUnstyledComponentsPropsOverrides, BadgeUnstyledOwnerState>; badge?: SlotComponentProps<'span', BadgeUnstyledComponentsPropsOverrides, BadgeUnstyledOwnerState>; }; /** * The content rendered within the badge. */ badgeContent?: React.ReactNode; /** * The badge will be added relative to this node. */ children?: React.ReactNode; /** * If `true`, the badge is invisible. * @default false */ invisible?: boolean; /** * Max count to show. * @default 99 */ max?: number; /** * Controls whether the badge is hidden when `badgeContent` is zero. * @default false */ showZero?: boolean; } export interface BadgeUnstyledTypeMap
{
props: P & BadgeUnstyledOwnProps;
defaultComponent: D;
}
/**
* Utility to create component types that inherit props from BadgeUnstyled.
*/
export interface ExtendBadgeUnstyledTypeMap