You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You can control the appearance of the button by setting the following attributes:
13
+
The Telerik Button component for Blazor provides several ways to control its appearance. This article discusses the following component parameters:
14
14
15
15
*[FillMode](#fillmode)
16
16
*[Rounded](#rounded)
17
17
*[Size](#size)
18
18
*[ThemeColor](#themecolor)
19
19
20
-
You can use all of them together to achieve the desired appearance. This article will explain their effect one by one.
20
+
You can use all of them together to achieve the desired appearance.
21
21
22
22
## FillMode
23
23
24
-
The `FillMode`toggles the background and border of the TelerikButton. You can set the parameter to a member of the `Telerik.Blazor.ThemeConstants.Button.FillMode` class:
24
+
The `FillMode`parameter changes or removes the background and border of the Button. Set the parameter to a member of the static class `Telerik.Blazor.ThemeConstants.Button.FillMode`. When setting the `FillMode` parameter value inline, start with a `@` character, otherwise the predefined string constant cannot be resolved.
25
25
26
-
| Class members|Manual declarations|
27
-
|------------|--------|
28
-
|`Solid`<br /> default value|`solid`|
29
-
|`Flat`|`flat`|
30
-
|`Outline`|`outline`|
31
-
|`Link`|`link`|
32
-
|`Clear`|`clear`|
26
+
|FillMode Class Member|Actual String Value|
27
+
|---|---|
28
+
|`Solid`|`solid` (default) |
29
+
|`Flat`|`flat`|
30
+
|`Outline`|`outline`|
31
+
|`Link`|`link`|
32
+
|`Clear`|`clear`|
33
33
34
-
>caption The built-in Fill modes
34
+
>caption Built-in Button FillMode Values
35
35
36
36
````RAZOR
37
-
@* These are all built-in fill modes *@
38
-
39
-
@{
40
-
var fields = typeof(Telerik.Blazor.ThemeConstants.Button.FillMode)
The `Rounded` parameter applies the`border-radius` CSS rule to the button to achieve curving of the edges. You can set it to a member of the `Telerik.Blazor.ThemeConstants.Button.Rounded` class:
46
+
The `Rounded` parameter applies a`border-radius` CSS style to the Button to curve the corners. Set the parameter to a member of the static class `Telerik.Blazor.ThemeConstants.Button.Rounded`. When setting the `Rounded` parameter value inline, start with a `@` character, otherwise the predefined string constant cannot be resolved.
59
47
60
-
| Class members|Manual declarations|
61
-
|------------|--------|
62
-
|`Small`|`sm`|
63
-
|`Medium`|`md`|
64
-
|`Large`|`lg`|
65
-
|`Full`|`full`|
48
+
|Rounded Class Member|Actual Value|
49
+
|---|---|
50
+
|`Small`|`sm`|
51
+
|`Medium`|`md` (default) |
52
+
|`Large`|`lg`|
53
+
|`Full`|`full`|
66
54
67
-
>caption The built-in values of the Rounded attribute
55
+
>caption Built-in Button Rounded Values
68
56
69
57
````RAZOR
70
-
@* The built-in rounded edges of the button. *@
71
-
72
-
@{
73
-
var fields = typeof(Telerik.Blazor.ThemeConstants.Button.Rounded)
You can increase or decrease the size of the button by setting the `Size`parameter to a member of the `Telerik.Blazor.ThemeConstants.Button.Size` class:
66
+
The `Size` parameter affects the Button dimensions, paddings, and font size. Set the parameter to a member of the static class `Telerik.Blazor.ThemeConstants.Button.Size`. When setting the `Size` parameter value inline, start with a `@` character, otherwise the predefined string constant cannot be resolved.
92
67
93
-
| Class members|Manual declarations|
94
-
|---------------|--------|
95
-
|`Small`|`sm`|
96
-
|`Medium`|`md`|
97
-
|`Large`|`lg`|
68
+
|Size Class Member|Actual Value|
69
+
|---|---|
70
+
|`Small`|`sm`|
71
+
|`Medium`|`md` (default) |
72
+
|`Large`|`lg`|
98
73
99
-
>caption The built-in button sizes
74
+
>caption Built-in Button Size Values
100
75
101
76
````RAZOR
102
-
@{
103
-
var fields = typeof(Telerik.Blazor.ThemeConstants.Button.Size)
The color of the button is controlled through the `ThemeColor` parameter. You can set it to a member of the `Telerik.Blazor.ThemeConstants.Button.ThemeColor` class:
84
+
The `ThemeColor` parameter controls the Button background, text, and border color. Set the parameter to a member of the static class `Telerik.Blazor.ThemeConstants.Button.ThemeColor`. When setting the `ThemeColor` parameter value inline, start with a `@` character, otherwise the predefined string constant cannot be resolved.
122
85
123
-
| Class members|Manual declarations|
124
-
|------------|--------|
125
-
|`Base`<br /> default value |`base`|
126
-
|`Primary`|`primary`|
127
-
|`Secondary`|`secondary`|
128
-
|`Tertiary`|`tertiary`|
129
-
|`Info`|`info`|
130
-
|`Success`|`success`|
131
-
|`Warning`|`warning`|
132
-
|`Error`|`error`|
133
-
|`Dark`|`dark`|
134
-
|`Light`|`light`|
135
-
|`Inverse`|`inverse`|
86
+
|ThemeColor Class Member|Actual String Value|
87
+
|---|---|
88
+
|`Base`|`base` (default) |
89
+
|`Primary`|`primary`|
90
+
|`Secondary`|`secondary`|
91
+
|`Tertiary`|`tertiary`|
92
+
|`Info`|`info`|
93
+
|`Success`|`success`|
94
+
|`Warning`|`warning`|
95
+
|`Error`|`error`|
96
+
|`Dark`|`dark`|
97
+
|`Light`|`light`|
98
+
|`Inverse`|`inverse`|
136
99
137
100
138
-
>caption The built-in ThemeColors
101
+
>caption Built-in Button ThemeColor Values
139
102
140
103
````RAZOR
141
-
@* The built-in button colors *@
142
-
143
-
@{
144
-
var fields = typeof(Telerik.Blazor.ThemeConstants.Button.ThemeColor)
0 commit comments