常见问题

带全部展开的问答

FAQ with expand-all control

计数 + 一键全展开

实时预览

提示词正文

Build an FAQ with an expand-all control in Tailwind CSS: a header row with the question count and a toggle that expands or collapses every answer at once, with the button label flipping between 'Expand all' and 'Collapse all'. Individual questions still open and close independently afterwards, and the toggle reflects a mixed state when only some are open.

提示词保持英文原文——直接粘贴进 Claude、Cursor、v0 或任何 AI 编程工具即可使用。

怎么用

全展开开关要能反映“部分展开”的混合状态;之后单项仍可独立操作。

同类提示词 · 常见问题

© 2026 Genisource Vibe · 提示词详情