lambdaisland 2024-11-28

Good evening, has anyone integrated Ornament with UIX?

Ornament creates hiccup component, it won't be able to do something else without major modification.

@zikajk if you are looking for css lib to use together with UIx, checkout https://github.com/roman01la/uix.css

@roman01la Thanks for the tip. Unfortunately, I was thinking about migrating to react@18 and since Reagent is outdated, I thought about switching to UIX, but unfortunately we have a lot of Ornament components in the code.

๐Ÿ‘ 2

never tried it, but ornament components are just functions that return hiccup. If UIX can work with those then it should be fine.

It doesnโ€™t support Hiccup syntax , so it must be wrapped in r/as-element or translated. Or ($ :div {:class (o/classname foo)})

There's another option, if you stringify an ornament component you get its classname, so you can keep your ornament styling and refer to it in your uix components.

@plexus yeah, this is the way we favor right now.

๐Ÿ‘ 1