lambdaisland

Akiz 2024-11-28T18:49:41.798199Z

Good evening, has anyone integrated Ornament with UIX?

plexus 2024-12-02T09:01:04.451579Z

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

Roman Liutikov 2024-12-02T13:59:02.093289Z

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

Akiz 2024-12-02T16:46:28.681849Z

@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
plexus 2024-11-29T09:42:29.324219Z

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

Akiz 2024-11-29T14:33:23.634689Z

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

plexus 2024-12-03T11:59:48.288559Z

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.

Akiz 2024-12-03T12:00:49.276319Z

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

๐Ÿ‘ 1