跳到主要内容
0

本课内容目前为英文。

Style from state

A menu is open, a tab is selected, a box is ticked. The page already knows, because that state lives in attributes such as aria-expanded and data-state. Tailwind can style straight from them, so you do not need JavaScript to swap class names.