Brutalist Tabs
基于 Base Tabs 的硬边 Tabs 投影
Tabs 继承 Base 的选择、激活与 descendant-first panel focus-entry 语义,并使用5px 圆角平面 list/trigger。参考 demo 为 Root 提供响应式稳定宽度,因此切换 panel 不会让 widget 改变宽度或重新居中。
正在加载交互示例… 正文和源码已可阅读,交互控件就绪后会显示在这里。
Tabs 是工作区源码,没有公开的 proto-ui add 目标。传入 value 进入受控模式。
| 属性 | 类型 | 默认值 |
|---|---|---|
defaultValue | string | '' |
orientation | 'horizontal' 'vertical' | horizontal |
activationMode | 'automatic' 'manual' | automatic |
appearance | 'default' 'underline' | default |
前三个属性属于 Root。appearance 属于 List 与 Trigger。List 的 orientation 默认 horizontal,loop 默认 false,a11yLabel 默认 ''。Trigger 的 value 默认 '',disabled 默认 false。Content 的 value 默认 '',keepMounted 默认 false。Indicator 没有属性。