@crova until I can package some documented examples in phx_component_helpers repo, here is a gist with our Table component and all its sub_components (rows, cells, buttons …)
It’s quite a complex component because it has a lot of optional features (actions buttons, header sorting, row by row checkbox / radio selection, select all)
This might be due to my inexperience of Elixir/Phoenix but but I do not get any @heex values in my assigns
Following your example my assigns are Available assigns: [:changed, :class, :id, :label, :phx_click, :raw_attributes, :raw_class, :raw_id, :raw_label, :raw_phx_attributes, :raw_phx_click, :raw_type]
What am I missing?
Just released 1.1.0 with a new, more explicit, behavior of extend_class/3 which fixes the issue mentioned in this topic.
Changelog:
extend_class/3 behavior has been updated and will soon no longer replace default css classes based on their prefix (this behavior is still working but deprecated). To switch to the new behavior and suppress warning messages, pass the prefix_replace: falseoption and use the new ! based syntax to explicitly remove default CSS classes. (ex: !border-* border-red-500)