How to use @ as a class name with Razor Syntax for TailwindCss

54 views Asked by At

TailwindCss Container Queries prefix with a @ ...but also that's how we reference things in Razor syntax.

https://github.com/tailwindlabs/tailwindcss-container-queries

How can I use container query syntax in C# asp.net .cshtml razor files?

Example

 class="@container"

Throws an exception that 'The name container does not exist in the current context'

0

There are 0 answers