Skip to content

Instantly share code, notes, and snippets.

@mt-akar
Created November 2, 2022 10:17
Show Gist options
  • Save mt-akar/073d0ea0e2ebf4e1505311adf1f43b83 to your computer and use it in GitHub Desktop.
Save mt-akar/073d0ea0e2ebf4e1505311adf1f43b83 to your computer and use it in GitHub Desktop.
Responsive site content width for Blazor and Tailwind
<div class="w-full sm:w-5/6 md:w-4/5 lg:w-3/4 mx-auto px-4 py-6">
@ChildContent
</div>
@code {
[Parameter]
public RenderFragment? ChildContent { get; set; }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment