I’m doing something like this and my approach is used the phx-hook ( mounted, beforeUpdate, updated) to update the element styles.
Please refer to the session JS Interop and client-controlled DOM at Phoenix LiveView HexDocs.
I’m doing something like this and my approach is used the phx-hook ( mounted, beforeUpdate, updated) to update the element styles.
Please refer to the session JS Interop and client-controlled DOM at Phoenix LiveView HexDocs.