<turbo-stream action="append" target="posts_list"><template>    <div class="postbit" id="245764" data-post-id="245764">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="thomasbrus" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/thomasbrus/120/40196_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  thomasbrus
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Just curious by the way, have you considered using BEM classes? So a button component would get a <code>.button.button--primary</code> class for example instead of utility classes.</p>
<p>Asking this because it would be nice not having to use !important when overriding styles, as described here: <a href="https://petal.build/components/modifying-components" class="inline-onebox" rel="noopener nofollow ugc">Modifying components</a>. Since this increases the CSS specificity.</p>
<p>This would also enable other niceties such as theming via CSS vars:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">.button {
  --primary-color: #abcdef;
}
</code></pre>
<p>I understand the goal is of course that the styling works out of the box with as little setup as possible. However if the developer is already using Tailwind they could import the stylesheets from ./deps/petal_components (I think) and it would “just work”, no need for an NPM package.</p>
<p>By the way I’m currently using this package with some of my own components mixed and it works quite nicely <img src="https://forum.elixirforum.com/images/emoji/apple/+1.png?v=15" title=":+1:" class="emoji" alt=":+1:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="245764" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/petal-components-package-a-set-of-tailwind-styled-components-written-in-heex/43633/43">Post #42</a>
	                </div>
	            </div>
              <div id="likers-container-245764" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="245764"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #42"></div>
  </section>
</div>
    <div class="postbit" id="245774" data-post-id="245774">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="mplatts" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mplatts/120/26552_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  mplatts
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Hi <a class="mention" href="/u/thomasbrus" rel="nofollow">@thomasbrus</a>,</p>
<p>Thanks good suggestion. I’ve wondered if that could be a superior option - something like <a href="https://daisyui.com/" rel="noopener nofollow ugc">daisyui</a> - especially for certain elements like buttons. One problem is it might fall down with more complex components like &lt;.dropdown&gt; or &lt;.pagination&gt;, where we want to abstract away where to put the divs and spans and in what order etc. So it might be slightly more confusing to have some components where you use a BEM class, and some you just use a HEEX component.</p>
<p>I need to learn more about CSS vars - can you explain why that is better than defining the “primary” color in the tailwind config (theme.extend.colors.primary)?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="245774" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/petal-components-package-a-set-of-tailwind-styled-components-written-in-heex/43633/44">Post #43</a>
	                </div>
	            </div>
              <div id="likers-container-245774" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="245774"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #43"></div>
  </section>
</div>
    <div class="postbit" id="245777" data-post-id="245777">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="thomasbrus" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/thomasbrus/120/40196_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  thomasbrus
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<aside class="quote no-group" data-username="mplatts" data-post="44" data-topic="43633">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="24" height="24" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mplatts/48/26552_2.png" class="avatar"> mplatts:</div>
<blockquote>
<p>Thanks good suggestion. I’ve wondered if that could be a superior option - something like <a href="https://daisyui.com/" rel="noopener nofollow ugc">daisyui</a> - especially for certain elements like buttons. One problem is it might fall down with more complex components like &lt;.dropdown&gt; or &lt;.pagination&gt;, where we want to abstract away where to put the divs and spans and in what order etc. So it might be slightly more confusing to have some components where you use a BEM class, and some you just use a HEEX component.</p>
</blockquote>
</aside>
<p>Ah yes what you’re saying is expose BEM classes only right? I agree that would fall apart with more complex components.</p>
<p>What I meant only affects the implementation. End users still use HEEX but the implementation wise you’d use BEM classes instead of utility classes (which are the reason currently !class is needed to override styles).</p>
<p>So implementation wise it would look something like this:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">  def button(assigns) do
    assigns = assign(assigns, :class, fn -&gt; ["button", button_intent_class(assigns.intent), @class] end)

    ~H"""
    &lt;button class={@class} {@extra}&gt;
      &lt;%= render_slot(@inner_block) %&gt;
    &lt;/button&gt;
    """
  end

  def button_intent_class("primary"), do: "button--primary"
  def button_intent_class("success"), do: "button--success"
  def button_intent_class("danger"), do: "button--danger"
</code></pre>
<p>And the corresponding CSS would be:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">@layer components {
  .button {
    padding: theme('padding.2');
    /* etc */
  }

  .button--primary {
    background: theme('colors.green.500');
    /* etc */
  }
}
</code></pre>
<p>Then you could use the button as follows:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">&lt;.button intent="primary" class="p-3 text-red-500"&gt;Special button&lt;/.button&gt;
</code></pre>
<p>Outputs:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">&lt;button class="button button--primary p-3 text-red-500"&gt;... etc ...
</code></pre>
<p>In Tailwind the <code>components</code> layer always comes before <code>utilities</code> so it has a lower specificity in CSS, so no need for !p-3 (important). Also think it would cleanup the petal codebase a bit but that is up to you two to decide of course.</p>
<blockquote>
<p>I need to learn more about CSS vars - can you explain why that is better than defining the “primary” color in the tailwind config (theme.extend.colors.primary)?</p>
</blockquote>
<p>I mentioned CSS vars mostly because when you separate the styling from the components you can reference CSS vars for additional customization. When all styles are inlined via utility classes this is not as easy.</p>
<p>You could also provide a default value for <code>primary</code> so that users don’t need to modify their tailwind.config.js for it to work. On the other hand you can also expose a <a href="https://tailwindcss.com/docs/presets" rel="noopener nofollow ugc">Tailwind preset</a>. So lot’s of options there <img src="https://forum.elixirforum.com/images/emoji/apple/smile.png?v=15" title=":smile:" class="emoji" alt=":smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="245777" data-batch-url="/posts/batch_likers">
                        3
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/petal-components-package-a-set-of-tailwind-styled-components-written-in-heex/43633/45">Post #44</a>
	                </div>
	            </div>
              <div id="likers-container-245777" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="245777"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #44"></div>
  </section>
</div>
    <div class="postbit" id="245779" data-post-id="245779">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="mplatts" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/mplatts/120/26552_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  mplatts
                    <span class="op-star" title="Thread Starter">
                      <img alt="OP" class="op-star-icon" src="/assets/thread-icons/thread-icon-thread-starter-df91e872.png" />
                    </span>
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Ohh I see now… that looks great - you’re all over it <img src="https://forum.elixirforum.com/images/emoji/apple/muscle.png?v=15" title=":muscle:" class="emoji" alt=":muscle:" loading="lazy" width="20" height="20">. We’ll definitely look into this - might ping you when we have a PR ready to have a look over it if that’s okay</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="245779" data-batch-url="/posts/batch_likers">
                        2
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/petal-components-package-a-set-of-tailwind-styled-components-written-in-heex/43633/46">Post #45</a>
	                </div>
	            </div>
              <div id="likers-container-245779" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="245779"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #45"></div>
  </section>
</div>
    <div class="postbit" id="245783" data-post-id="245783">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="gdub01" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/gdub01/120/3939_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  gdub01
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I like the css vars approach. I looked at Daisy UI and their use of vars and I put this in my head:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">    :root {
      --primary: 70 100% 10%;
      --primary-focus: 70 100% 15%;
      --primary-content: 70 100% 90%;
      --secondary: 140 100% 20%;
      --secondary-focus: 140 100% 40%;
      --secondary-content: 140 100% 80%;
      --accent: 210 100% 20%;
      --accent-focus: 210 100% 40%;
      --accent-content: 210 100% 80%;
      --neutral: 10 100% 10%;
      --neutral-focus: 10 100% 15%;
      --neutral-content: 10 100% 90%;
      --base-100: 35 100% 95%;
      --base-200: 35 100% 90%;
      --base-300: 35 100% 80%;
      --base-content: 35 100% 20%;
      --info: 240 100% 10%;
      --info-content: 240 100% 90%;
      --success: 69 100% 20%;
      --success-content: 69 100% 20%;
      --warning: 69 100% 20%;
      --warning-content:69 100% 20%;
      --error:0 100% 10%;
      --error-content: 0 100% 90%;
      --rounded-box: 0.25rem;
      --rounded-btn: 0.125rem;
      --rounded-badge: 0.125rem;
      --animation-btn: 0;
      --animation-input: 0;
      --btn-focus-scale: 1;
      --tab-radius: 0;
    }
</code></pre>
<p>then here’s an excerpt of tailwind config:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">theme: {
    colors: {
      primary: "hsl(var(--primary))",
      "primary-focus": "hsl(var(--primary-focus))",
      "primary-content": "hsl(var(--primary-content))",
      secondary: "hsl(var(--secondary))",
      "secondary-focus": "hsl(var(--secondary-focus))",
      "secondary-content": "hsl(var(--secondary-content))",
      accent: "hsl(var(--accent))",
      "accent-focus": "hsl(var(--accent-focus))",
      "accent-content": "hsl(var(--accent-content))",
      neutral: "hsl(var(--neutral))",
      "neutral-focus": "hsl(var(--neutral-focus))",
      "neutral-content": "hsl(var(--neutral-content))",
      "base-100": "hsl(var(--base-100))",
      "base-200": "hsl(var(--base-200))",
      "base-300": "hsl(var(--base-300))",
      "base-focus": "hsl(var(--base-focus))",
      "base-content": "hsl(var(--base-content))",
      info: "hsl(var(--info))",
      "info-focus": "hsl(var(--info-focus))",
      "info-content": "hsl(var(--info-content))",
      success: "hsl(var(--success))",
      "success-focus": "hsl(var(--success-focus))",
      "success-content": "hsl(var(--success-content))",
</code></pre>
<p>then in each component I can’t use <code>bg-gray-500</code> or whatever. It forces me to use <code>bg-base-100</code> and <code>text-base-content</code>. The advantage is color use is pretty consistent/branded. It’s also very easy to theme as we know from daisyUI.</p>
<p>I went and used hsl for colors… not sure if that’s the right plan or not.. that’s just what I ended up choosing for the moment. DaisyUI uses hsla at times for opacity.</p>
<p>Just wanted to throw that out there in case that idea is interesting.</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="245783" data-batch-url="/posts/batch_likers">
                        4
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/petal-components-package-a-set-of-tailwind-styled-components-written-in-heex/43633/47">Post #46</a>
	                </div>
	            </div>
              <div id="likers-container-245783" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="245783"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #46"></div>
  </section>
</div>
    <div class="postbit" id="247151" data-post-id="247151">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="anuras" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/anuras/120/25503_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  anuras
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>I’m experimenting with Petal components for my liveview webapp and have run into a strange behaviour.<br>
In my example I have a standard dropdown component from petal library and a custom dropdown live component (sorting selector), like so:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">&lt;div phx-click="toggle_sort" phx-target={@myself}&gt;Sorting&lt;/div&gt;
&lt;%= if @sorting.visible do %&gt;
&lt;div&gt;displaying sorting options here&lt;/div&gt;
&lt;% end %&gt;
</code></pre>
<p>The event that handles this toggle looks like so:</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">def handle_event("toggle_sort", _params, socket) do
    {:noreply, socket
      |&gt; assign(:sorting, socket.assigns.sorting
        |&gt; Map.put(:visible, !socket.assigns.sorting.visible)
      )}
  end
</code></pre>
<p>It seems to be working fine in separation. However, whenever I click on the petal dropdown component, “toggle_sort” event is also triggered. It also happens when I click on a color theme selector (from petal boilerplate project).<br>
I don’t really understand why is this happening. I’d really appreciate if someone could point me to what I should be looking for here?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="247151" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/petal-components-package-a-set-of-tailwind-styled-components-written-in-heex/43633/48">Post #47</a>
	                </div>
	            </div>
              <div id="likers-container-247151" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="247151"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #47"></div>
  </section>
</div>
    <div class="postbit" id="247155" data-post-id="247155">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="cmo" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/cmo/120/19618_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  cmo
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p><a class="mention" href="/u/anuras" rel="nofollow">@anuras</a> you need to post the full code. There are no components visible to us there.</p>
<p>Also, why not use JS to toggle the visibility?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="247155" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/petal-components-package-a-set-of-tailwind-styled-components-written-in-heex/43633/49">Post #48</a>
	                </div>
	            </div>
              <div id="likers-container-247155" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="247155"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #48"></div>
  </section>
</div>
    <div class="postbit" id="247166" data-post-id="247166">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="anuras" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/anuras/120/25503_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  anuras
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>My petal dropdown looks like this (with styling removed for clarity):</p>
<pre data-code-wrap="elixir"><code class="lang-elixir">&lt;.dropdown&gt;
    &lt;:trigger_element&gt;
        &lt;div&gt;
            &lt;span&gt;
            Dropdown
            &lt;/span&gt;
        &lt;/div&gt;
    &lt;/:trigger_element&gt;
    &lt;.dropdown_menu_item link_type="live_redirect" to={MyAppWeb.Router.Helpers.post_cat_url(MyAppWeb.Endpoint, :cat, "category 1")} label="category 1" /&gt;
    &lt;.dropdown_menu_item link_type="live_redirect" to={MyAppWeb.Router.Helpers.post_cat_url(MyAppWeb.Endpoint, :cat, "category 2")} label="category 2" /&gt;
&lt;/.dropdown&gt;
</code></pre>
<p>Not sure if this is enough. To be honest I don’t have much good experience with JS and every time I’m trying to use it I end up dejected after a lot of struggling. As a result I’m actively trying to avoid writing JS myself and try to rely on libraries like this one. Perhaps that’s not a very wise strategy haha <img src="https://forum.elixirforum.com/images/emoji/apple/slight_smile.png?v=15" title=":slight_smile:" class="emoji" alt=":slight_smile:" loading="lazy" width="20" height="20"></p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="247166" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/petal-components-package-a-set-of-tailwind-styled-components-written-in-heex/43633/50">Post #49</a>
	                </div>
	            </div>
              <div id="likers-container-247166" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="247166"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #49"></div>
  </section>
</div>
    <div class="postbit" id="247169" data-post-id="247169">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="cmo" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/cmo/120/19618_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  cmo
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Sorry, I meant <a href="https://hexdocs.pm/phoenix_live_view/Phoenix.LiveView.JS.html" rel="noopener nofollow ugc">Phoenix.LiveView.JS</a>.</p>
<p>Where does your div from the other post fit in?</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="247169" data-batch-url="/posts/batch_likers">
                        1
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/petal-components-package-a-set-of-tailwind-styled-components-written-in-heex/43633/51">Post #50</a>
	                </div>
	            </div>
              <div id="likers-container-247169" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="247169"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #50"></div>
  </section>
</div>
    <div class="postbit" id="247171" data-post-id="247171">
  <section>
    <div class="post-wrap">


					<div class="post-header">
		        <div class="user-avatar">
		          <img alt="anuras" src="https://forum.elixirforum.com/user_avatar/forum.elixirforum.com/anuras/120/25503_2.png" width="120" height="120" />
		        </div>
					
						<div class="user-details">
		          <div class="user-name">
		            <h3>
                  anuras
                  </h3>
		          </div>
						
						</div>
					
					</div>

	        <div class="thread-main">
	            <div class="post-body" data-turbo="false">
								<p>Totally overlooked LiveView.JS. It seems this is exactly what I need and way simpler!</p> 
	            </div>

	            <div class="base-line">
	                <div class="thread-counters">
	                    <span class="thread-count count-likes js-likers-trigger" title="Likes" data-post-id="247171" data-batch-url="/posts/batch_likers">
                        0
                      </span>
                      <!-- <span class="thread-count js-solved-indicator" title="Marked as solution"></span> -->
	                </div>
	                <div class="go-to-post">
	                  <a title="Go to post" alt="Go to post" href="https://forum.elixirforum.com/t/petal-components-package-a-set-of-tailwind-styled-components-written-in-heex/43633/52">Post #51</a>
	                </div>
	            </div>
              <div id="likers-container-247171" 
                   class="likers-container"
                   data-first-post="false"
                   data-batch-url="/posts/batch_likers">
                   <div class="likers-placeholder" 
                     data-likers-post-id="247171"
                     data-batch-url="/posts/batch_likers">
                  <div class="post-likers"></div>
                </div>
              </div>
	        </div>
			

    </div>

    <div class="triangle-top-right type-standard-post cat-standard-post" title="Post #51"></div>
  </section>
</div>
</template></turbo-stream><turbo-stream action="replace" target="load-more-container"><template><div id="load-more-container" class="load-more-container">
    <a class="load-more-button" data-turbo-stream="true" href="/topics/43633/load_more?page=6">Load more posts (17 remaining)</a>
</div></template></turbo-stream>