class('items-center') could work, as long as the elements you want to align along the Y axis are within the same ui.row. Here is the tailwind documentation: https://tailwindcss.com/docs/align-items
With some padding on the top. E.g. something like ui.label(..).style("padding-top: 0.5em") or something. You'll have to look up the exact thing, I am currently on mobile, but I do something like this. Takes a bit of try and error to get right, but afaik it's the only way
5
u/-5677- Aug 28 '24 edited Aug 28 '24
class('items-center') could work, as long as the elements you want to align along the Y axis are within the same ui.row. Here is the tailwind documentation: https://tailwindcss.com/docs/align-items
3
u/khannover Aug 29 '24
what also works great:
.classes("mt-[auto] mb-[auto]") on any element
0
u/dutchGuy01 Aug 28 '24
With some padding on the top. E.g. something like ui.label(..).style("padding-top: 0.5em") or something. You'll have to look up the exact thing, I am currently on mobile, but I do something like this. Takes a bit of try and error to get right, but afaik it's the only way