Properties
Name | Type | Default | Description |
---|---|---|---|
Behavior | |||
Alt |
string |
null | Specifies an alternate text for the image. |
Fluid |
bool |
False | Applies the fluid class so the image scales with the parent width. |
Src |
string |
null | Specifies the path to the image. |
Appearance | |||
Elevation |
int |
0 | The higher the number, the heavier the drop-shadow. |
Height |
int? |
null | Specifies the height of the image in px. |
ObjectFit |
ObjectFit |
ObjectFit.Fill | Controls how the image should be resized. |
ObjectPosition |
ObjectPosition |
ObjectPosition.Center | Controls how the image should positioned within its container. |
Width |
int? |
null | Specifies the width of the image in px. |
Common | |||
Class |
string |
null | User class names, separated by space. |
Style |
string |
null | User styles, applied on top of the component's own classes and styles. |
Tag |
object |
null | Use Tag to attach any user data object to the component for your convenience. |
UserAttributes |
Dictionary<string, object> |
UserAttributes carries all attributes you add to the component that don't match any of its parameters. They will be splatted onto the underlying HTML tag. | |