-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathImageComponent.razor
More file actions
45 lines (43 loc) · 1.14 KB
/
ImageComponent.razor
File metadata and controls
45 lines (43 loc) · 1.14 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
@using BlazorStyled
<Styled @bind-Classname=@ImageContainerStyle>
position: @Position;
left: @LeftStyle;
top: @TopStyle;
z-index: @ZIndex;
display: inline-block;
outline: none;
border: none;
width: auto;
margin: 0px;
padding: 0px;
visibility: @Visibility;
</Styled>
<Styled @bind-Classname=@ImageStyle>
background-image: url('@ImageUrl');
background-size: 100% 100%;
display: inline-block;
justify-content: center;
align-items: center;
outline: @OutlineStyle;
border: @BorderStyle;
background-repeat: no-repeat;
background-color: transparent;
width: @WidthStyle;
height: @HeightStyle;
white-space: nowrap;
vertical-align: central;
margin: 0px;
padding: 0px;
</Styled>
<Styled @bind-Classname=@ImageTextStyle>
position: @Position;
left: @TextOffsetXStyle;
top: @TextOffsetYStyle;
text-align: @TextAlign;
font-family: @FontName;
font-size: @FontSizeStyle;
</Styled>
<div class="@ImageContainerStyle @ClassName">
<img class="@ImageStyle" />
<span class="@ImageTextStyle">@Text</span>
</div>