折叠面板
Accordion 以 useAccordion 组合式函数的形式提供。它负责管理展开状态、ARIA 属性、禁用行为和触发器的键盘导航,标记结构与视觉设计则由调用方决定。
Accordion 有意保持无头设计,因为它在不同产品界面中的呈现差异很大:列表行、卡片、设置面板、侧边栏和紧凑表格都需要不同的结构。
组合式函数
useAccordion
未找到 useAccordion 的 API 元数据。
示例
默认
Review the activity, pinned projects, and pending updates for this workspace.
Manage user roles, invitations, and access changes.
Configure login methods and session policies.
多项展开
Email, push, and in-app notification settings can stay open while other sections are edited.
Review storage usage and retention settings.
Update payment methods and invoice recipients.
自定义界面
Choose density, contrast, and theme preferences.
Customize frequently used command shortcuts.