Open this example in the interactive library
Source code
<details class="demo open:border-s-4 open:border-teal-700">
<summary>Show details</summary>
<p>Open state applies a start border.</p>
</details>
Show which details panel is open with Tailwind CSS 4 utilities. The preview uses precompiled styles.
Open this example in the interactive library
<details class="demo open:border-s-4 open:border-teal-700">
<summary>Show details</summary>
<p>Open state applies a start border.</p>
</details>