ui.div() #572
Replies: 4 comments 9 replies
-
def div():
return ui.element('div') this is how i implemented it now, for example for this usage: with div():
... |
Beta Was this translation helpful? Give feedback.
-
Interesting idea, @ofenbach! Let me share my thoughts about it:
|
Beta Was this translation helpful? Give feedback.
-
I understand your reasoning but I think nicegui should have both low-level and high-level usage. For example, I prefer to use ui.element(‘div’) rather than ui.cards() because I can fully customize the element with tailwindcss. If I use ui.cards(), I always have style conflicts between props and classes. I'm currently trying to reproduce this design: https://ui.shadcn.com/. I'll let you know if I succeed |
Beta Was this translation helpful? Give feedback.
-
In version 2.5.0 we introduced an html module including |
Beta Was this translation helpful? Give feedback.
-
Why not add this shortcut instead of using
ui.element('div')
?its easy to implement i guess?
Beta Was this translation helpful? Give feedback.
All reactions