pub fn AvatarImage(props: AvatarImageProps) -> impl IntoViewExpand description
Renders an image inside the avatar.
§Optional Props
- accesskey:
impl Into<MaybeProp<String>>- A space separated list of keys to focus this element. The first key available on the user’s keyboard layout is used.
- autocapitalize:
impl Into<MaybeProp<String>>-
Sets whether the input value should be capitalized and how. If a parent
<form>hasautocapitalizerules set, it will override any rules set here.Accepted values: “none” or “off” | “sentences” or “on” | “words” | “characters”.
-
- autofocus:
impl Into<MaybeProp<bool>>- Grabs focus once the page has finished loading. Only one element on the page can be focused at a time.
- class:
impl Into<MaybeProp<String>>- Apply classes to the element.
- contenteditable:
impl Into<MaybeProp<String>>-
Allows client-side editing of the element by the user.
Accepted values: “true” | “false” | “plaintext-only”
-
- dir:
impl Into<MaybeProp<String>>-
Indicate directionality of the element’s text.
Accepted values: “ltr” | “rtl” | “auto”
-
- draggable:
impl Into<MaybeProp<bool>>- Toggle whether the element can be dragged.
- enterkeyhint:
impl Into<MaybeProp<String>>- Modifies the appearance of the enter key on virtual keyboards.
- exportparts:
impl Into<MaybeProp<String>>- Expose elements in the shadow DOM to be manipulated by the DOM.
- hidden:
impl Into<MaybeProp<String>>- Controls hidden status of the element.
- id:
impl Into<MaybeProp<String>>- Set the id of this element.
- inert:
impl Into<MaybeProp<bool>>- Toggle if the browser reacts to input events from this element.
- inputmode:
impl Into<MaybeProp<String>>- Hints to the browser of what type of virtual keyboard to display when editing this element or its children.
- is:
impl Into<MaybeProp<String>>- Used to render a standard element as a custom element.
- itemid:
impl Into<MaybeProp<String>>- Unique global identifier of an item.
- itemprop:
impl Into<MaybeProp<String>>- Used to add properties to an item.
- itemref:
impl Into<MaybeProp<String>>- Used to associate an item with a related non-parent element that’s using
itemscope.
- Used to associate an item with a related non-parent element that’s using
- itemscope:
impl Into<MaybeProp<String>>- Used to declare that children elements are related to a particular item.
- itemtype:
impl Into<MaybeProp<String>>- URL of data used to define
itemprops.
- URL of data used to define
- lang:
impl Into<MaybeProp<String>>- Defines the language of an element.
- nonce:
impl Into<MaybeProp<String>>- Cryptographic “number used once”.
- part:
impl Into<MaybeProp<String>>- List of the part names of the element.
- popover:
impl Into<MaybeProp<String>>- Designate an element as a popover element.
- role:
impl Into<MaybeProp<String>>- Define the semantic meaning of content.
- slot:
impl Into<MaybeProp<String>>- Assigns a slot to an element.
- spellcheck:
impl Into<MaybeProp<String>>-
Toggle spellcheck for this input.
Accepted values: “default” | “true” | “false”.
-
- style:
impl Into<MaybeProp<String>>- Define CSS to be applied to the element.
- tabindex:
impl Into<MaybeProp<usize>>- Controls how an element behaves when a user navigates using the tab key.
- title:
impl Into<MaybeProp<String>>- Describes the content of the element to screen readers.
- translate:
impl Into<MaybeProp<String>>- Defines localization behavior for the element.
- alt:
impl Into<MaybeProp<String>>- The text that shows when an image is not loaded.
- crossorigin:
impl Into<MaybeProp<String>>- Indicates if the fetching of the image must be done using a
CORSrequest.
- Indicates if the fetching of the image must be done using a
- decoding:
impl Into<MaybeProp<String>>-
Specifies how the browser should handle displaying the image or lack of image during rendering.
Accepted values: “sync” | “async” | “auto”
-
- elementtiming:
impl Into<MaybeProp<String>>- Marks the image for observation by the
PerformanceElementTimingAPI.
- Marks the image for observation by the
- fetchpriority:
impl Into<MaybeProp<String>>-
Set the priority of this image compared to other images on the same page.
Accepted values: “high” | “low” | “auto”
-
- height:
impl Into<MaybeProp<usize>>- The height to render the image.
- ismap:
impl Into<MaybeProp<bool>>- Specify whether the image is part of a map and the coordinates should be sent back to the server..
- loading:
impl Into<MaybeProp<String>>-
How the browser should load the image.
Accepted values: “eager” | “lazy”
-
- referrerpolicy:
impl Into<MaybeProp<String>>- Specify which referrer to use when fetching the image.
- sizes:
impl Into<MaybeProp<String>>- A comma separated list of sizes that the image can be displayed, or “auto”.
- src:
impl Into<MaybeProp<String>>- The source of the image file.
- srcset:
impl Into<MaybeProp<String>>- A comma separated list of possible sources for the image.
- usemap:
impl Into<MaybeProp<String>>- A partial URL of an associated image map.
- width:
impl Into<MaybeProp<String>>- The width to render the image.