UNPKG

@base-ui-components/react

Version:

Base UI is a library of headless ('unstyled') React components and low-level hooks. You gain complete control over your app's CSS and accessibility features.

19 lines 756 B
import * as React from 'react'; import { BaseUIComponentProps } from "../../utils/types.js"; import type { AvatarRoot } from "../root/AvatarRoot.js"; /** * Rendered when the image fails to load or when no image is provided. * Renders a `<span>` element. * * Documentation: [Base UI Avatar](https://base-ui.com/react/components/avatar) */ export declare const AvatarFallback: React.ForwardRefExoticComponent<AvatarFallbackProps & React.RefAttributes<HTMLSpanElement>>; export interface AvatarFallbackProps extends BaseUIComponentProps<'span', AvatarRoot.State> { /** * How long to wait before showing the fallback. Specified in milliseconds. */ delay?: number; } export declare namespace AvatarFallback { type Props = AvatarFallbackProps; }