Search results

Create a Block Button in Blazor Button component

20 Apr 2021 / 1 minute to read

You can customize a Button into a Block Button that will span the entire width of its parent element. To create a Block Button, set the CssClass property to e-block.

Copied to clipboard
@using Syncfusion.Blazor.Buttons

<SfButton CssClass="e-block">BLOCKBUTTON</SfButton>
<SfButton CssClass="e-block" IsPrimary="true">BLOCKBUTTON</SfButton>
<SfButton CssClass="e-block e-success">BLOCKBUTTON</SfButton>

Output be like

Button Sample