Skip to content

Commit ad25f97

Browse files
authored
Correct the name of enum ButtonSize in buttons.mdx (#1147)
1 parent 49cdf49 commit ad25f97

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

docs/docs/05-components/buttons.mdx

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -106,18 +106,18 @@ Some of the button styles use a relatively light foreground color, and should on
106106

107107
### Sizes
108108

109-
Fancy larger or smaller buttons? Add `Size="Size.Large"` or `Size="Size.Small"` for additional sizes.
109+
Fancy larger or smaller buttons? Add `Size="ButtonSize.Large"` or `Size="ButtonSize.Small"` for additional sizes.
110110

111111
<img src="https://i.imgur.com/Vdiyg6q.jpg" alt="Blazor Bootstrap: Button Component - Sizes" />
112112

113113
```cshtml showLineNumbers
114114
<p>
115-
<Button Color="ButtonColor.Primary" Size="Size.Large"> Large button </Button>
116-
<Button Color="ButtonColor.Secondary" Size="Size.Large"> Large button </Button>
115+
<Button Color="ButtonColor.Primary" Size="ButtonSize.Large"> Large button </Button>
116+
<Button Color="ButtonColor.Secondary" Size="ButtonSize.Large"> Large button </Button>
117117
</p>
118118
<p>
119-
<Button Color="ButtonColor.Primary" Size="Size.Small"> Small button </Button>
120-
<Button Color="ButtonColor.Secondary" Size="Size.Small"> Small button </Button>
119+
<Button Color="ButtonColor.Primary" Size="ButtonSize.Small"> Small button </Button>
120+
<Button Color="ButtonColor.Secondary" Size="ButtonSize.Small"> Small button </Button>
121121
</p>
122122
```
123123

@@ -385,4 +385,4 @@ HTML tooltips not supported at this moment.
385385
}
386386
```
387387

388-
[See button click events demo here.](https://demos.blazorbootstrap.com/buttons#click-events)
388+
[See button click events demo here.](https://demos.blazorbootstrap.com/buttons#click-events)

0 commit comments

Comments
 (0)