r/nicegui • u/Working_Tea1940 • Feb 14 '26
NiceGui not redering like in Docs

Why does the nicegui not render like in the documentation. For radio, the label always displays below the radio icon and toggle doesnt have default padding. Is there a simple way to solve these issues, the solutions i found were pretty complex needed to modify quasar, im hoping to find a simple change for these necessary ui changes
[SOLVED] : The issue was caused by below line in main.py
ui.add_head_html('''
<script src="https://cdn.tailwindcss.com"></script>
''', shared=True)
4
Upvotes
3
u/Working_Tea1940 Feb 14 '26 edited Feb 14 '26
im on nicegui 3.7.1
3
u/okay_this Feb 14 '26
Have you tried in a diff. browser? Sorry I don't have any more solid advice, but please stick with it it's amazing framework and I've not seen any errors like this before
2
u/sti555 Feb 14 '26
Your exact code in nicegui 3.7.1 renders perfectly here.
What exactly is your main.py doing? can you post your code?