Skip to content

A Swiss Army knife for developers.

1.2 KB
Raw Blame
@namespace DevToys.Blazor.Components

@inherits JSStyledComponentBase

<CascadingValue Name="ParentIsEnabled" Value="@IsActuallyEnabled">
    <Container HorizontalAlignment="@HorizontalAlignment"
               VerticalAlignment="@VerticalAlignment"
               Width="@Width"
               Height="@Height"
               MarginLeft="@MarginLeft"
               MarginRight="@MarginRight"
               MarginTop="@MarginTop"
               MarginBottom="@MarginBottom"
               PaddingLeft="@PaddingLeft"
               PaddingRight="@PaddingRight"
               PaddingTop="@PaddingTop"
               PaddingBottom="@PaddingBottom"
               IsEnabled="@IsActuallyEnabled"
               IsVisible="@IsVisible">
        <button id=@Id
                role="button"
                class="@(FinalCssClasses)"
                style="@(Style)"
                tabindex="0"
                title="@ToolTip"
                @ref=Element
                @attributes="AdditionalAttributes"
                @onclick:stopPropagation="@IsActuallyEnabled"
                @onkeydown:stopPropagation="@IsActuallyEnabled">
            @ChildContent
        </button>
    </Container>
</CascadingValue>