Enode — API Reference
    Preparing search index...

    Interface AvatarButtonProps

    Props for AvatarButton.

    interface AvatarButtonProps {
        ariaLabel: string;
        className?: string;
        dataFind?: string;
        href?: string;
        onPress?: () => void;
        photoUrl?: string | null;
        ring?: boolean;
        size?: number;
    }
    Index

    Properties

    ariaLabel: string

    Accessible name; the caller passes the translated copy, e.g. t("Account").

    className?: string

    Extra classes on the outer hit-area element.

    dataFind?: string

    Optional data-find attribute for test/find hooks.

    href?: string

    When set, an <a> is rendered instead of a <button>.

    onPress?: () => void

    Click handler, used when href is not set.

    photoUrl?: string | null

    Profile photo URL; the profile icon is shown when absent.

    ring?: boolean

    Draws a 1.5px --foreground-red-orange ring behind a 2px page-background gap.

    size?: number

    Visual diameter in px (default 44). The hit area never drops below 44 px.