diff --git a/AGENTS.md b/AGENTS.md index bea76a3..030cc07 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -352,3 +352,14 @@ Vaul Vue 官方已说明停止维护并推荐 Reka Drawer;新项目不采用 V - Popover 模态 closeAutoFocus 的取消能力与 Reka 有已记录差异,不在文档承诺可取消;Tooltip Provider warmup 不宣称等价 RAC 全局调度。新增能力先验证实际底座而非只改类型和表格。 - 动画测量态不能用未经规范化的 style 字符串精确比较:浏览器会把 `translate(0, -200%)` 序列化为 `translate(0px, -200%)`。把临时 `animation:none` 当成 reduced-motion 会提前删掉 entering,Popover/Tooltip 因而跳过进入动画。回归同时覆盖 CSSOM 两种写法、定位后开始及真正无动画路径;真实浏览器检查 animationstart/end 和时长,不只检查关闭后节点消失。 + +## M24–M25 滚动与标签页约束(2026-10-23) + +- ScrollShadow 与 Tabs 已由集成人迁移,当前状态见 [M24–M25 报告](docs/migrations/M24-M25-scroll-shadow-tabs.md)。useScrollShadow 是公共能力,组件与组合式函数必须共用一份测量内核;Vue 返回属性显式绑定,不复制 React dataset 副作用。 +- 滚动边界须验证 offset、1px 容差、RTL 负 scrollLeft、内容增减、资源加载、禁用/手动模式切换及卸载清理。静态容器 ResizeObserver 不足以覆盖内部内容变化;RAF 合并实际测量,别建立因自身 data 属性更新触发的观察循环。 +- 不为套源 CSS 将 Reka 的 data-disabled 空字符串改成 true。RovingFocus 用空值过滤键盘候选,样式改用存在选择器;禁用样式、焦点和原生属性要一起验收。 +- Reka 的内部 ID 会覆盖外层 attrs。Tabs 通过真正的 asChild 原生节点维护实例唯一的 Tab/Panel ID、显式 ARIA 和 SSR 首屏关联;字符串/数字 key 隔离。插槽预规划同时识别 kebab/camel props,并验证条件成员与嵌套 Tabs。 +- 指示器按布局坐标测量,避免祖先弹层缩放改变尺寸;保留初始无过渡、后续 250ms 几何过渡、RTL 和 reduced-motion。Tab 手势与自动焦点请求须去重,受控拒绝不能让一次点击重复发选择请求。 +- Markdown 表格类型中的管道符必须转义,即使包在行内代码中也不例外;浏览器核对每行单元格数及长短表铺满/无横向溢出。新增依赖同步 dependencies、external 策略与 dist 类型检查,不以源码 alias 验证代替发布产物。 + +- 底座的 useVModel 不能在初始无选中项时误入 passive 模式。Tabs 私有 wire key 对原始字符串/数值做类型编码,并用独立空值表示无选择;公开 key 与事件保持原值。回归初始空/全禁用→启用→受控拒绝,检查 aria-selected 与视觉标记一致。 diff --git a/apps/docs/.vitepress/theme/Layout.vue b/apps/docs/.vitepress/theme/Layout.vue index 3437b1a..9d2d712 100644 --- a/apps/docs/.vitepress/theme/Layout.vue +++ b/apps/docs/.vitepress/theme/Layout.vue @@ -80,12 +80,14 @@ const groups = [ url: "/components/progress-circle", }, { title: "RadioGroup 单选框组", url: "/components/radio-group" }, + { title: "ScrollShadow 滚动阴影", url: "/components/scroll-shadow" }, { title: "SearchField 搜索框", url: "/components/search-field" }, { title: "Separator 分隔符", url: "/components/separator" }, { title: "Skeleton 骨架屏", url: "/components/skeleton" }, { title: "Spinner 加载指示器", url: "/components/spinner" }, { title: "Surface 表面", url: "/components/surface" }, { title: "Switch 开关", url: "/components/switch" }, + { title: "Tabs 标签页", url: "/components/tabs" }, { title: "TextArea 多行文本框", url: "/components/textarea" }, { title: "TextField 文本输入框", url: "/components/text-field" }, { title: "Tooltip 工具提示", url: "/components/tooltip" }, diff --git a/apps/docs/components.md b/apps/docs/components.md index 8ca18e4..0df9c2f 100644 --- a/apps/docs/components.md +++ b/apps/docs/components.md @@ -45,3 +45,6 @@ description: 已迁移组件及文档 - [Modal 模态框](./components/modal) - [Popover 弹出框](./components/popover) - [Tooltip 工具提示](./components/tooltip) + +- [ScrollShadow 滚动阴影](./components/scroll-shadow) +- [Tabs 标签页](./components/tabs) diff --git a/apps/docs/components/scroll-shadow.md b/apps/docs/components/scroll-shadow.md new file mode 100644 index 0000000..d42de72 --- /dev/null +++ b/apps/docs/components/scroll-shadow.md @@ -0,0 +1,166 @@ +--- +title: ScrollShadow 滚动阴影 +description: 通过阴影提示可滚动溢出内容,并根据滚动位置自动检测显示或隐藏。 +component: scroll-shadow +group: 组件 +--- + +> 固定 HeroUI 3.2.6 / ce90ea3;使用 Vue 具名部件、原生 attrs 与同源 SFC 演示。 + +## 用法 + +```ts +import { ScrollShadow } from "@heroui-vue/components"; +``` + + + +## 示例 + +### 方向 + + + +### 阴影尺寸 + + + +### 与 Card 组合 + + + +### 隐藏滚动条 + + + +### 可见性变化 + + + +## 自定义样式 + +### Tailwind CSS + + + +### 全局 CSS + +若要自定义组件类,可使用 `@layer components` 指令。[了解更多](https://tailwindcss.com/docs/adding-custom-styles#adding-component-classes)。 + +```css +@layer components { + .hv-scroll-shadow { + @apply rounded-xl border border-border; + } + + .hv-scroll-shadow--vertical { + @apply pr-2; /* Add padding for custom scrollbar styling */ + } + + .hv-scroll-shadow--horizontal { + @apply pb-2; + } +} +``` + +## 样式参考 + +HeroUI 遵循 [BEM](https://getbem.com/) 方法论,确保组件变体与状态可复用且易于自定义。 + +### CSS 类 + +ScrollShadow 组件使用以下 CSS 类([查看源码样式](https://github.com/heroui-inc/heroui/blob/v3/packages/styles/components/scroll-shadow.css)): + +#### 基础类 + +- `.hv-scroll-shadow` - 根容器元素 + +#### 方向变体 + +- `.hv-scroll-shadow--vertical` - 纵向滚动(默认) +- `.hv-scroll-shadow--horizontal` - 横向滚动 + +#### 状态修饰符 + +- `.hv-scroll-shadow--hide-scrollbar` - 隐藏原生滚动条 + +### CSS 变量 + +ScrollShadow 组件使用 CSS 变量设置渐变遮罩尺寸,并为可见的原生滚动条保留空间: + +| 变量 | 默认值 | 描述 | +| -------------------------------- | ------------------------------------ | -------------------------------------------------------------------------------------------- | +| `--scroll-shadow-size` | `40px` | 控制渐变阴影尺寸。该值由 `size` prop 设置。 | +| `--scroll-shadow-offset` | `0px` | 开始显示渐变之前需要滚动的距离。该值由 `offset` prop 设置。 | +| `--scroll-shadow-scrollbar-size` | `10px`(`hideScrollBar` 时为 `0px`) | 为原生滚动条保留一段实色遮罩区域,避免渐变覆盖滚动条。使用更宽的自定义滚动条时可以覆盖该值。 | + +### Data 属性 + +组件使用 data 属性控制阴影可见性: + +- **滚动状态**:`[data-top-scroll]`、`[data-bottom-scroll]`、`[data-left-scroll]`、`[data-right-scroll]` — 当内容可向对应方向滚动时应用 +- **组合状态**:`[data-top-bottom-scroll]`、`[data-left-right-scroll]` — 当内容可向两个方向滚动时应用 +- **方向**:`[data-orientation="vertical"]` 或 `[data-orientation="horizontal"]` — 表示滚动方向 +- **尺寸**:`[data-scroll-shadow-size]` — 阴影渐变尺寸数值 +- **阴影模式**:`[data-scroll-shadow-mode]` — 渐变由滚动位置推导时为 `"auto"`;`visibility` 受控或 `isEnabled` 为 `false` 时为 `"manual"` + +### 滚动驱动的渐变 + +在 `auto` 模式下,支持[滚动驱动动画](https://developer.mozilla.org/zh-CN/docs/Web/CSS/animation-timeline)的浏览器会直接在 CSS +中根据滚动位置推导渐变。因此遮罩在首次绘制时就是正确的,无需测量,也不会在 hydration 期间出现未渐变内容的闪烁。 +不支持的浏览器会回退到上面的 `[data-*-scroll]` 属性,这些属性在 hydration 之后才写入。自定义样式时需要注意两点: + +- 在 `auto` 模式下,即使没有可滚动内容,根元素也始终会解析出 `mask-image`。这会使其成为层叠上下文, + 并成为 `position: fixed` 后代元素的包含块。如需退出该行为,请显式设置 `visibility`。 +- 滚动驱动的渐变依赖根元素上的 `animation` 属性。在同一元素上使用 `animate-*` 工具类会覆盖它,导致渐变消失。 + 请改为对外层容器应用动画。 + +## API 参考 + +### ScrollShadow + +| Prop | 类型 | 默认值 | 描述 | +| -------------------- | ---------------------------------------------------------------------------------- | ------------ | ---------------------------------- | +| `orientation` | `"vertical"` \| `"horizontal"` | `"vertical"` | 滚动方向 | +| `variant` | `"fade"` | `"fade"` | 阴影视觉效果样式 | +| `size` | `number` | `40` | 阴影渐变尺寸(像素) | +| `offset` | `number` | `0` | 开始显示阴影前的滚动偏移量(像素) | +| `hideScrollBar` | `boolean` | `false` | 是否隐藏原生滚动条 | +| `isEnabled` | `boolean` | `true` | 是否启用滚动阴影检测 | +| `visibility` | `"auto"` \| `"both"` \| `"top"` \| `"bottom"` \| `"left"` \| `"right"` \| `"none"` | `"auto"` | 受控的阴影可见性 | +| `@visibility-change` | `(visibility: ScrollShadowVisibility) => void` | - | 阴影可见性变化时调用的回调 | +| `class` | `string` | - | 应用到根元素上的额外 CSS 类 | +| `默认插槽` | `VNode / 插槽` | - | 可滚动的子内容 | + +## Vue 事件与测量边界 + +`@visibility-change` 仅在自动检测状态变化时通知;显式 visibility 控制显示,不产生自动检测事件。isEnabled=false 停止自动检测并清除旧阴影,显式 visibility 仍优先。水平 left/right 与基线一样表示逻辑起始/结束,RTL 由 CSS 交换物理边缘。偏移边界与末端 1px 容差保留。 + +通过 VueUse 监听尺寸、子树文本/样式/节点与资源 load,滚动测量合并到 requestAnimationFrame,卸载清理;暴露 element、update() 和 scrollTo(options)。遮罩布局/滚动由真实浏览器验证,单元测试的模拟尺寸只验证边界计算。CSS scroll timeline、首次渲染和堆叠上下文限制保留上面的源说明。默认不添加 tabIndex,需键盘滚动的独立区域请提供 tabindex="0" 和可访问名称。 + +## useScrollShadow + +公开组合式函数复用组件的同一份测量内核,接受元素 ref/getter 和响应式 orientation / offset / visibility / isEnabled。返回只读 visibility、attributes 与 update();Vue 通过 v-bind 明确绑定状态属性,不像 React hook 隐式修改 dataset。样式与尺寸由调用者设置。 + +```vue + + +``` + +## 相关组件 + +[ScrollShadow 滚动阴影](./scroll-shadow) · [Tabs 标签页](./tabs) diff --git a/apps/docs/components/tabs.md b/apps/docs/components/tabs.md new file mode 100644 index 0000000..c7223f0 --- /dev/null +++ b/apps/docs/components/tabs.md @@ -0,0 +1,240 @@ +--- +title: Tabs 标签页 +description: Tabs 将内容组织为多个区块,并允许用户在它们之间导航。 +component: tabs +group: 组件 +--- + +> 固定 HeroUI 3.2.6 / ce90ea3;使用 Vue 具名部件、原生 attrs 与同源 SFC 演示。 + +## 用法 + +```ts +import { Tabs } from "@heroui-vue/components"; +``` + + + +## 组件结构 + +Vue 使用具名部件导出,选择值推荐使用 value(兼容基线 id 作为逻辑 key)。 + +```vue + + +``` + +## 示例 + +### 垂直布局 + + + +### 溢出 + +当标签列表超出可用空间时,`TabsListContainer` 会自动渲染滚动箭头与渐隐边缘,使用户可以导航到被隐藏的标签。水平与垂直方向均支持此行为。 + + + +### 禁用 Tab + + + +### 带分隔线 + +在每个 `` 内(第一项除外)添加 ``,用于在标签之间显示分隔线。 + + + +### 次要类型 + + + +### 次要类型(垂直) + + + +### 对齐方式 + +标签内容默认居中。使用 `align` 可将其对齐到 `start` 或 `end`,这在垂直的侧边栏式导航中尤其有用。单个标签仍可通过 `TabsTab` 上的 `class` 覆盖。 + + + +### 渲染函数 + + + +## 自定义样式 + +### Tailwind CSS + + + +### 全局 CSS + +若要自定义组件类,可使用 `@layer components` 指令。[了解更多](https://tailwindcss.com/docs/adding-custom-styles#adding-component-classes)。 + +```css +@layer components { + .hv-tabs__list { + @apply rounded-xl border border-border bg-surface p-1; + } + + .hv-tabs__tab { + @apply rounded-lg font-medium; + } + + .hv-tabs__indicator { + @apply rounded-lg bg-foreground shadow-sm; + } + + .hv-tabs--secondary > .hv-tabs__list-container > .hv-tabs__list { + @apply border-b border-border bg-transparent p-0; + } + + .hv-tabs--secondary > .hv-tabs__list-container .hv-tabs__indicator { + @apply rounded-none bg-accent; + } +} +``` + +## 样式参考 + +HeroUI 遵循 [BEM](https://getbem.com/) 方法论,确保组件变体与状态可复用且易于自定义。 + +### CSS 类 + +Tabs 组件使用以下 CSS 类([查看源码样式](https://github.com/heroui-inc/heroui/blob/v3/packages/styles/components/tabs.css)): + +#### 基础类 + +- `.hv-tabs` - Tabs 根容器 +- `.hv-tabs__list-container` - 标签列表容器外层包裹 +- `.hv-tabs__list-container__scroller` - 标签列表的可滚动容器(处理溢出与渐隐边缘) +- `.hv-tabs__list-container__scroll-prev` - 向前(左 / 上)滚动的箭头按钮 +- `.hv-tabs__list-container__scroll-next` - 向后(右 / 下)滚动的箭头按钮 +- `.hv-tabs__list` - 标签列表容器 +- `.hv-tabs__tab` - 单个标签按钮 +- `.hv-tabs__separator` - 标签之间的分隔线 +- `.hv-tabs__panel` - 标签面板内容 +- `.hv-tabs__indicator` - 标签指示器 + +#### 方向属性 + +- `.hv-tabs[data-orientation="horizontal"]` - 水平标签布局(默认) +- `.hv-tabs[data-orientation="vertical"]` - 垂直标签布局 + +#### 变体类 + +- `.hv-tabs--secondary` - 次要类型变体,使用下划线指示器 + +#### 对齐类 + +- `.hv-tabs--align-start` - 标签内容对齐到起始侧 +- `.hv-tabs--align-end` - 标签内容对齐到结束侧 + +### 交互状态 + +组件同时支持 CSS 伪类与 data 属性: + +- **Selected**:`[aria-selected="true"]` +- **Hover**:`:hover` 或 `[data-hovered="true"]` +- **Focus**:`:focus-visible` 或 `[data-focus-visible="true"]` +- **Disabled**:`[aria-disabled="true"]` + +## API 参考 + +### Tabs + +| Prop | 类型 | 默认值 | 描述 | +| -------------------- | --------------------------------- | -------------- | ---------------------------------------------------------------- | +| `variant` | `"primary" \| "secondary"` | `"primary"` | 视觉样式变体。Primary 使用填充指示器,Secondary 使用下划线指示器 | +| `orientation` | `"horizontal" \| "vertical"` | `"horizontal"` | 标签布局方向 | +| `align` | `"start" \| "center" \| "end"` | `"center"` | 每个标签内部内容的对齐方式 | +| `selectedKey` | `string` | - | 受控选中标签的 key | +| `defaultSelectedKey` | `string` | - | 默认选中标签的 key | +| `@selection-change` | `(key: string \| number) => void` | - | 选中变化回调 | +| `class` | `string` | - | 附加 CSS 类 | +| `as` | `as: string` | - | Vue 自定义根元素类型 | + +### TabsList + +| Prop | 类型 | 默认值 | 描述 | +| ------------ | ------------ | ------ | -------------------- | +| `aria-label` | `string` | - | 标签列表的无障碍标签 | +| `class` | `string` | - | 附加 CSS 类 | +| `as` | `as: string` | - | Vue 自定义根元素类型 | + +### TabsTab + +| Prop | 类型 | 默认值 | 描述 | +| ------------ | ------------ | ------- | -------------------- | +| `id` | `string` | - | 标签唯一标识 | +| `isDisabled` | `boolean` | `false` | 是否禁用该标签 | +| `class` | `string` | - | 附加 CSS 类 | +| `as` | `as: string` | - | Vue 自定义根元素类型 | + +### TabsSeparator + +| Prop | 类型 | 默认值 | 描述 | +| ------- | -------- | ------ | ----------- | +| `class` | `string` | - | 附加 CSS 类 | + +### TabsPanel + +| Prop | 类型 | 默认值 | 描述 | +| ------- | ------------ | ------ | ---------------------------- | +| `id` | `string` | - | 与对应 Tab id 匹配的面板标识 | +| `class` | `string` | - | 附加 CSS 类 | +| `as` | `as: string` | - | Vue 自定义根元素类型 | + +## Vue 状态与部件补充 + +推荐 `v-model`(modelValue / update:modelValue);selectedKey / defaultSelectedKey 与 @selection-change 保留为兼容别名,modelValue/defaultValue 优先。未给默认值时选择首个未禁用项;非受控选中项删除或被禁用后回落到首个可用项。受控父级拒绝请求时保持父级选择。数值与字符串 key 区分,真实 DOM ID 按实例生成,Tab/Panel 的 value(或 id 别名)匹配。 + +| 部件 | 属性 / 事件 | 默认 | 说明 | +| ----------------- | ---------------------------------- | --------------------------- | ---------------------------------------------------------------- | +| Tabs | keyboardActivation | automatic | manual 时方向键仅移动焦点,Enter/Space 选择 | +| Tabs | disabledKeys / isDisabled | [] / false | 禁用指定项 / 全组 | +| Tabs | dir | ConfigProvider 或 ltr | 水平导航、逻辑位置与滚动方向 | +| TabsList | loop / as | true / div | 默认到达两端循环,可显式关闭 | +| TabsListContainer | as | div | 包含真实 ScrollShadow 与滚动箭头,非 tablist 角色 | +| TabsTab | value / id / as / href | - / - / button(href 时 a) | id 为逻辑 key 别名,非最终 DOM ID;disabled 与 isDisabled 均可用 | +| TabsTab | 默认作用域插槽 | { isSelected, isDisabled } | 替代 React render props | +| TabsPanel | value / id / as / shouldForceMount | - / - / div / false | 强制挂载用于保留未选中面板状态,未选中仍隐藏 | +| TabsIndicator | as / 默认插槽 | span | 放在每个 Tab 内,按选中项几何位置过渡 | +| TabsSeparator | as / 默认插槽 | span | 装饰性分隔线 | + +RAC 的集合 render-prop API 不作逐字复制,列表用 v-for,DOM render 用 as + 原生 attrs;未知 Vue 包装组件内的首选项/面板 SSR 无法静态发现,应显式给 defaultValue 与 ARIA。Reka 保留按下/焦点自动激活语义,监听 mousedown/keydown 可取消相应激活,不能用 click.prevent 撤销此前的自动选择。失活面板容器保留并隐藏,默认卸载内容;shouldForceMount 保留内容。 + +渲染函数示例以普通锚点替代 Next Link,指向本地指南/组件/介绍页;保留上游导航型示例中不匹配的面板 key,因此不展示普通内容面板。Vue Router 可通过调用者的导航事件接入,本包不强依赖路由库;as 当前接受原生标签字符串。 + +## 相关组件 + +[ScrollShadow 滚动阴影](./scroll-shadow) · [Tabs 标签页](./tabs) diff --git a/apps/docs/demos/scroll-shadow-custom-styles.vue b/apps/docs/demos/scroll-shadow-custom-styles.vue new file mode 100644 index 0000000..6bf57e6 --- /dev/null +++ b/apps/docs/demos/scroll-shadow-custom-styles.vue @@ -0,0 +1,31 @@ + + diff --git a/apps/docs/demos/scroll-shadow-default.vue b/apps/docs/demos/scroll-shadow-default.vue new file mode 100644 index 0000000..e8695ad --- /dev/null +++ b/apps/docs/demos/scroll-shadow-default.vue @@ -0,0 +1,19 @@ + + diff --git a/apps/docs/demos/scroll-shadow-hide-scroll-bar.vue b/apps/docs/demos/scroll-shadow-hide-scroll-bar.vue new file mode 100644 index 0000000..b2af469 --- /dev/null +++ b/apps/docs/demos/scroll-shadow-hide-scroll-bar.vue @@ -0,0 +1,19 @@ + + diff --git a/apps/docs/demos/scroll-shadow-orientation.vue b/apps/docs/demos/scroll-shadow-orientation.vue new file mode 100644 index 0000000..f25c9de --- /dev/null +++ b/apps/docs/demos/scroll-shadow-orientation.vue @@ -0,0 +1,63 @@ + + diff --git a/apps/docs/demos/scroll-shadow-size.vue b/apps/docs/demos/scroll-shadow-size.vue new file mode 100644 index 0000000..3983b2c --- /dev/null +++ b/apps/docs/demos/scroll-shadow-size.vue @@ -0,0 +1,19 @@ + + diff --git a/apps/docs/demos/scroll-shadow-visibility-change.vue b/apps/docs/demos/scroll-shadow-visibility-change.vue new file mode 100644 index 0000000..3f8aa79 --- /dev/null +++ b/apps/docs/demos/scroll-shadow-visibility-change.vue @@ -0,0 +1,98 @@ + + diff --git a/apps/docs/demos/scroll-shadow-with-card.vue b/apps/docs/demos/scroll-shadow-with-card.vue new file mode 100644 index 0000000..5571d41 --- /dev/null +++ b/apps/docs/demos/scroll-shadow-with-card.vue @@ -0,0 +1,38 @@ + + diff --git a/apps/docs/demos/tabs-basic.vue b/apps/docs/demos/tabs-basic.vue new file mode 100644 index 0000000..3bf39ae --- /dev/null +++ b/apps/docs/demos/tabs-basic.vue @@ -0,0 +1,39 @@ + + diff --git a/apps/docs/demos/tabs-custom-styles.vue b/apps/docs/demos/tabs-custom-styles.vue new file mode 100644 index 0000000..b76fae5 --- /dev/null +++ b/apps/docs/demos/tabs-custom-styles.vue @@ -0,0 +1,51 @@ + + diff --git a/apps/docs/demos/tabs-disabled.vue b/apps/docs/demos/tabs-disabled.vue new file mode 100644 index 0000000..c5b1164 --- /dev/null +++ b/apps/docs/demos/tabs-disabled.vue @@ -0,0 +1,37 @@ + + diff --git a/apps/docs/demos/tabs-overflow.vue b/apps/docs/demos/tabs-overflow.vue new file mode 100644 index 0000000..996de17 --- /dev/null +++ b/apps/docs/demos/tabs-overflow.vue @@ -0,0 +1,42 @@ + + diff --git a/apps/docs/demos/tabs-render-function.vue b/apps/docs/demos/tabs-render-function.vue new file mode 100644 index 0000000..2c0c5d3 --- /dev/null +++ b/apps/docs/demos/tabs-render-function.vue @@ -0,0 +1,39 @@ + + diff --git a/apps/docs/demos/tabs-secondary-vertical.vue b/apps/docs/demos/tabs-secondary-vertical.vue new file mode 100644 index 0000000..aa11255 --- /dev/null +++ b/apps/docs/demos/tabs-secondary-vertical.vue @@ -0,0 +1,50 @@ + + diff --git a/apps/docs/demos/tabs-secondary.vue b/apps/docs/demos/tabs-secondary.vue new file mode 100644 index 0000000..66db34a --- /dev/null +++ b/apps/docs/demos/tabs-secondary.vue @@ -0,0 +1,39 @@ + + diff --git a/apps/docs/demos/tabs-vertical-alignment.vue b/apps/docs/demos/tabs-vertical-alignment.vue new file mode 100644 index 0000000..5a036c3 --- /dev/null +++ b/apps/docs/demos/tabs-vertical-alignment.vue @@ -0,0 +1,63 @@ + + diff --git a/apps/docs/demos/tabs-vertical.vue b/apps/docs/demos/tabs-vertical.vue new file mode 100644 index 0000000..a6d214b --- /dev/null +++ b/apps/docs/demos/tabs-vertical.vue @@ -0,0 +1,50 @@ + + diff --git a/apps/docs/demos/tabs-with-separator.vue b/apps/docs/demos/tabs-with-separator.vue new file mode 100644 index 0000000..3d133f6 --- /dev/null +++ b/apps/docs/demos/tabs-with-separator.vue @@ -0,0 +1,42 @@ + + diff --git a/apps/playground/src/App.vue b/apps/playground/src/App.vue index 5754442..6e22f99 100644 --- a/apps/playground/src/App.vue +++ b/apps/playground/src/App.vue @@ -1,5 +1,9 @@