Repository navigation
Fluent UI Blazor v5 (dev): Tailwind CSS compatibility and no-fuib-style #36898
Replies: 1 comment
|
builder.Services.AddFluentUIComponents(options =>
{
options.ValidateClassNames = false;
});It's stored statically, so it applies to the whole app. Plain Tailwind utilities don't need it. With validation on,
That table cell padding is most likely the padding you saw disappear. The attribute doesn't touch the components' own styling, so it won't let you control component spacing. Margins on a component come from whatever classes you put on it. Tailwind's preflight and |
Uh oh!
There was an error while loading. Please reload this page.
I'm using Fluent UI Blazor v5 (dev-5) with Tailwind CSS and have encountered a few issues compared with v4.
In v4, I could configure class-name validation using:
In v5, this configuration no longer seems to work or is no longer available.
I also tried using the no-fuib-style class, but it appears to remove padding, whereas I expected it to remove margins or let me control spacing entirely through Tailwind CSS.
My questions:
I'd appreciate any guidance or examples from developers who have successfully integrated Fluent UI Blazor v5 with Tailwind CSS.
All reactions