Skip to main content

AvatarFallbackProps

Props for the fallback element shown when the avatar image fails to load

Extends

  • ComponentPropsWithoutRef<typeof AvatarPrimitive.Fallback>

Properties

aria-activedescendant?

optional aria-activedescendant: string

Identifies the currently active element when DOM focus is on a composite widget, textbox, group, or application.

Inherited from

SubHeadingProps.aria-activedescendant


aria-atomic?

optional aria-atomic: Booleanish

Indicates whether assistive technologies will present all, or only parts of, the changed region based on the change notifications defined by the aria-relevant attribute.

Inherited from

SubHeadingProps.aria-atomic


aria-autocomplete?

optional aria-autocomplete: "list" | "none" | "inline" | "both"

Indicates whether inputting text could trigger display of one or more predictions of the user's intended value for an input and specifies how predictions would be presented if they are made.

Inherited from

SubHeadingProps.aria-autocomplete


aria-braillelabel?

optional aria-braillelabel: string

Defines a string value that labels the current element, which is intended to be converted into Braille.

See

aria-label.

Inherited from

SubHeadingProps.aria-braillelabel


aria-brailleroledescription?

optional aria-brailleroledescription: string

Defines a human-readable, author-localized abbreviated description for the role of an element, which is intended to be converted into Braille.

See

aria-roledescription.

Inherited from

SubHeadingProps.aria-brailleroledescription


aria-checked?

optional aria-checked: boolean | "true" | "false" | "mixed"

Indicates the current "checked" state of checkboxes, radio buttons, and other widgets.

See

  • aria-pressed
  • aria-selected.

Inherited from

SubHeadingProps.aria-checked


aria-colcount?

optional aria-colcount: number

Defines the total number of columns in a table, grid, or treegrid.

See

aria-colindex.

Inherited from

SubHeadingProps.aria-colcount


aria-colindex?

optional aria-colindex: number

Defines an element's column index or position with respect to the total number of columns within a table, grid, or treegrid.

See

  • aria-colcount
  • aria-colspan.

Inherited from

SubHeadingProps.aria-colindex


aria-colindextext?

optional aria-colindextext: string

Defines a human readable text alternative of aria-colindex.

See

aria-rowindextext.

Inherited from

SubHeadingProps.aria-colindextext


aria-colspan?

optional aria-colspan: number

Defines the number of columns spanned by a cell or gridcell within a table, grid, or treegrid.

See

  • aria-colindex
  • aria-rowspan.

Inherited from

SubHeadingProps.aria-colspan


aria-controls?

optional aria-controls: string

Identifies the element (or elements) whose contents or presence are controlled by the current element.

See

aria-owns.

Inherited from

SubHeadingProps.aria-controls


aria-current?

optional aria-current: boolean | "date" | "true" | "false" | "time" | "page" | "step" | "location"

Indicates the element that represents the current item within a container or set of related elements.

Inherited from

SubHeadingProps.aria-current


aria-describedby?

optional aria-describedby: string

Identifies the element (or elements) that describes the object.

See

aria-labelledby

Inherited from

SubHeadingProps.aria-describedby


aria-description?

optional aria-description: string

Defines a string value that describes or annotates the current element.

See

related aria-describedby.

Inherited from

SubHeadingProps.aria-description


aria-details?

optional aria-details: string

Identifies the element that provides a detailed, extended description for the object.

See

aria-describedby.

Inherited from

SubHeadingProps.aria-details


aria-disabled?

optional aria-disabled: Booleanish

Indicates that the element is perceivable but disabled, so it is not editable or otherwise operable.

See

  • aria-hidden
  • aria-readonly.

Inherited from

SubHeadingProps.aria-disabled


aria-dropeffect?

optional aria-dropeffect: "link" | "execute" | "none" | "copy" | "move" | "popup"

Indicates what functions can be performed when a dragged object is released on the drop target.

Deprecated

in ARIA 1.1

Inherited from

SubHeadingProps.aria-dropeffect


aria-errormessage?

optional aria-errormessage: string

Identifies the element that provides an error message for the object.

See

  • aria-invalid
  • aria-describedby.

Inherited from

SubHeadingProps.aria-errormessage


aria-expanded?

optional aria-expanded: Booleanish

Indicates whether the element, or another grouping element it controls, is currently expanded or collapsed.

Inherited from

SubHeadingProps.aria-expanded


aria-flowto?

optional aria-flowto: string

Identifies the next element (or elements) in an alternate reading order of content which, at the user's discretion, allows assistive technology to override the general default of reading in document source order.

Inherited from

SubHeadingProps.aria-flowto


aria-grabbed?

optional aria-grabbed: Booleanish

Indicates an element's "grabbed" state in a drag-and-drop operation.

Deprecated

in ARIA 1.1

Inherited from

SubHeadingProps.aria-grabbed


aria-haspopup?

optional aria-haspopup: boolean | "true" | "false" | "dialog" | "menu" | "grid" | "listbox" | "tree"

Indicates the availability and type of interactive popup element, such as menu or dialog, that can be triggered by an element.

Inherited from

SubHeadingProps.aria-haspopup


aria-hidden?

optional aria-hidden: Booleanish

Indicates whether the element is exposed to an accessibility API.

See

aria-disabled.

Inherited from

SubHeadingProps.aria-hidden


aria-invalid?

optional aria-invalid: boolean | "true" | "false" | "grammar" | "spelling"

Indicates the entered value does not conform to the format expected by the application.

See

aria-errormessage.

Inherited from

SubHeadingProps.aria-invalid


aria-keyshortcuts?

optional aria-keyshortcuts: string

Indicates keyboard shortcuts that an author has implemented to activate or give focus to an element.

Inherited from

SubHeadingProps.aria-keyshortcuts


aria-label?

optional aria-label: string

Defines a string value that labels the current element.

See

aria-labelledby.

Inherited from

SubHeadingProps.aria-label


aria-labelledby?

optional aria-labelledby: string

Identifies the element (or elements) that labels the current element.

See

aria-describedby.

Inherited from

SubHeadingProps.aria-labelledby


aria-level?

optional aria-level: number

Defines the hierarchical level of an element within a structure.

Inherited from

SubHeadingProps.aria-level


aria-live?

optional aria-live: "off" | "assertive" | "polite"

Indicates that an element will be updated, and describes the types of updates the user agents, assistive technologies, and user can expect from the live region.

Inherited from

SubHeadingProps.aria-live


aria-modal?

optional aria-modal: Booleanish

Indicates whether an element is modal when displayed.

Inherited from

SubHeadingProps.aria-modal


aria-multiline?

optional aria-multiline: Booleanish

Indicates whether a text box accepts multiple lines of input or only a single line.

Inherited from

SubHeadingProps.aria-multiline


aria-multiselectable?

optional aria-multiselectable: Booleanish

Indicates that the user may select more than one item from the current selectable descendants.

Inherited from

SubHeadingProps.aria-multiselectable


aria-orientation?

optional aria-orientation: "horizontal" | "vertical"

Indicates whether the element's orientation is horizontal, vertical, or unknown/ambiguous.

Inherited from

SubHeadingProps.aria-orientation


aria-owns?

optional aria-owns: string

Identifies an element (or elements) in order to define a visual, functional, or contextual parent/child relationship between DOM elements where the DOM hierarchy cannot be used to represent the relationship.

See

aria-controls.

Inherited from

SubHeadingProps.aria-owns


aria-placeholder?

optional aria-placeholder: string

Defines a short hint (a word or short phrase) intended to aid the user with data entry when the control has no value. A hint could be a sample value or a brief description of the expected format.

Inherited from

SubHeadingProps.aria-placeholder


aria-posinset?

optional aria-posinset: number

Defines an element's number or position in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.

See

aria-setsize.

Inherited from

SubHeadingProps.aria-posinset


aria-pressed?

optional aria-pressed: boolean | "true" | "false" | "mixed"

Indicates the current "pressed" state of toggle buttons.

See

  • aria-checked
  • aria-selected.

Inherited from

SubHeadingProps.aria-pressed


aria-readonly?

optional aria-readonly: Booleanish

Indicates that the element is not editable, but is otherwise operable.

See

aria-disabled.

Inherited from

SubHeadingProps.aria-readonly


aria-relevant?

optional aria-relevant: "all" | "text" | "additions" | "additions removals" | "additions text" | "removals" | "removals additions" | "removals text" | "text additions" | "text removals"

Indicates what notifications the user agent will trigger when the accessibility tree within a live region is modified.

See

aria-atomic.

Inherited from

SubHeadingProps.aria-relevant


aria-required?

optional aria-required: Booleanish

Indicates that user input is required on the element before a form may be submitted.

Inherited from

SubHeadingProps.aria-required


aria-roledescription?

optional aria-roledescription: string

Defines a human-readable, author-localized description for the role of an element.

Inherited from

SubHeadingProps.aria-roledescription


aria-rowcount?

optional aria-rowcount: number

Defines the total number of rows in a table, grid, or treegrid.

See

aria-rowindex.

Inherited from

SubHeadingProps.aria-rowcount


aria-rowindex?

optional aria-rowindex: number

Defines an element's row index or position with respect to the total number of rows within a table, grid, or treegrid.

See

  • aria-rowcount
  • aria-rowspan.

Inherited from

SubHeadingProps.aria-rowindex


aria-rowindextext?

optional aria-rowindextext: string

Defines a human readable text alternative of aria-rowindex.

See

aria-colindextext.

Inherited from

SubHeadingProps.aria-rowindextext


aria-rowspan?

optional aria-rowspan: number

Defines the number of rows spanned by a cell or gridcell within a table, grid, or treegrid.

See

  • aria-rowindex
  • aria-colspan.

Inherited from

SubHeadingProps.aria-rowspan


aria-selected?

optional aria-selected: Booleanish

Indicates the current "selected" state of various widgets.

See

  • aria-checked
  • aria-pressed.

Inherited from

SubHeadingProps.aria-selected


aria-setsize?

optional aria-setsize: number

Defines the number of items in the current set of listitems or treeitems. Not required if all elements in the set are present in the DOM.

See

aria-posinset.

Inherited from

SubHeadingProps.aria-setsize


aria-sort?

optional aria-sort: "none" | "other" | "ascending" | "descending"

Indicates if items in a table or grid are sorted in ascending or descending order.

Inherited from

SubHeadingProps.aria-sort


aria-valuemax?

optional aria-valuemax: number

Defines the maximum allowed value for a range widget.

Inherited from

SubHeadingProps.aria-valuemax


aria-valuemin?

optional aria-valuemin: number

Defines the minimum allowed value for a range widget.

Inherited from

SubHeadingProps.aria-valuemin


aria-valuenow?

optional aria-valuenow: number

Defines the current value for a range widget.

See

aria-valuetext.

Inherited from

SubHeadingProps.aria-valuenow


aria-valuetext?

optional aria-valuetext: string

Defines the human readable text alternative of aria-valuenow for a range widget.

Inherited from

SubHeadingProps.aria-valuetext


className?

optional className: string | (state) => undefined | string

CSS class applied to the element, or a function that returns a class based on the component’s state.

Inherited from

React.ComponentPropsWithoutRef.className


delay?

optional delay: number

How long to wait before showing the fallback. Specified in milliseconds.

Inherited from

React.ComponentPropsWithoutRef.delay


exportparts?

optional exportparts: string

See

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/exportparts

Inherited from

SubHeadingProps.exportparts


inert?

optional inert: boolean

See

https://developer.mozilla.org/en-US/docs/Web/API/HTMLElement/inert

Inherited from

SubHeadingProps.inert


inputMode?

optional inputMode: "search" | "text" | "url" | "none" | "email" | "decimal" | "tel" | "numeric"

Hints at the type of data that might be entered by the user while editing the element or its contents

See

https://html.spec.whatwg.org/multipage/interaction.html#input-modalities:-the-inputmode-attribute

Inherited from

SubHeadingProps.inputMode


is?

optional is: string

Specify that a standard HTML element should behave like a defined custom built-in element

See

https://html.spec.whatwg.org/multipage/custom-elements.html#attr-is

Inherited from

SubHeadingProps.is


onKeyPress()?

optional onKeyPress: (event) => void

Parameters

event

BaseUIEvent<KeyboardEvent<HTMLSpanElement>>

Returns

void

Deprecated

Use onKeyUp or onKeyDown instead

Inherited from

React.ComponentPropsWithoutRef.onKeyPress


onKeyPressCapture()?

optional onKeyPressCapture: (event) => void

Parameters

event

BaseUIEvent<KeyboardEvent<HTMLSpanElement>>

Returns

void

Deprecated

Use onKeyUpCapture or onKeyDownCapture instead

Inherited from

React.ComponentPropsWithoutRef.onKeyPressCapture


part?

optional part: string

See

https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/part

Inherited from

SubHeadingProps.part


render?

optional render: ReactElement<unknown, string | JSXElementConstructor<any>> | ComponentRenderFn<HTMLProps<any>, AvatarRootState>

Allows you to replace the component’s HTML element with a different tag, or compose it with another component.

Accepts a ReactElement or a function that returns the element to render.

Inherited from

React.ComponentPropsWithoutRef.render


style?

optional style: CSSProperties | CSSProperties & (state) => undefined | CSSProperties

Style applied to the element, or a function that returns a style object based on the component’s state.

Inherited from

React.ComponentPropsWithoutRef.style


tw?

optional tw: string

Specify styles using Tailwind CSS classes. This feature is currently experimental. If style prop is also specified, styles generated with tw prop will be overridden.

Example:

  • tw='w-full h-full bg-blue-200'
  • tw='text-9xl'
  • tw='text-[80px]'

Inherited from

SubHeadingProps.tw