diff --git a/AGENTS.md b/AGENTS.md index c52c0c5..dec5408 100644 --- a/AGENTS.md +++ b/AGENTS.md @@ -260,6 +260,9 @@ Vaul Vue 官方已说明停止维护并推荐 Reka Drawer;新项目不采用 V - Shiki 生成 token 不等于页面已高亮。浅色需应用 `--shiki-light`,深色需应用 `--shiki-dark`,通过浏览器计算颜色验证;不只查看是否存在 span。 - 高亮在构建/服务端生成,展开时按需加载,复制读取原始 SFC;高亮资源失败时仍提供可读源码。热更新同时失效原始源码与高亮模块,避免显示旧代码。 - 文档检查包括展开/收起、复制反馈、键盘搜索与章节跳转、移动目录、深浅切换和 API 表格实际渲染。Markdown 表格被空行断开等问题,类型检查不会发现。 +- 文档正文中的 API、事件、插槽、状态与其他说明表格统一铺满正文内容区;内容少时不收缩,内容多时自动换行,不要求横向拖动,也不缩小字号、截断或省略内容。 +- 复用 `apps/docs/.vitepress/theme/style.css` 的公共表格规则:`display: table`、`width: 100%`、`table-layout: fixed`;表头、单元格与行内代码允许换行,长标识符使用 `overflow-wrap: anywhere`。不要恢复 `display: block`、强制 `nowrap` 或撑宽表格的最小列宽;正文规则排除 `.not-prose`,避免影响演示组件。 +- 表格验收按 [迁移任务拆分与复核约定](docs/migration-handoff.md#文档表格排版与验收) 执行:真实浏览器同时检查长类型 API 表和短内容插槽表,覆盖桌面与窄屏,确认铺满内容区、无水平溢出及内容完整;修改公共规则时回归已有组件页和指南页。 ### 开发预览必须可靠 diff --git a/apps/docs/.vitepress/theme/Layout.vue b/apps/docs/.vitepress/theme/Layout.vue index 5c3fb36..c7eca93 100644 --- a/apps/docs/.vitepress/theme/Layout.vue +++ b/apps/docs/.vitepress/theme/Layout.vue @@ -44,10 +44,14 @@ const groups = [ { title: "组件", items: [ + { title: "Avatar 头像", url: "/components/avatar" }, + { title: "AvatarGroup 头像组", url: "/components/avatar-group" }, { title: "Button 按钮", url: "/components/button" }, { title: "Card 卡片", url: "/components/card" }, + { title: "CloseButton 关闭按钮", url: "/components/close-button" }, { title: "Input 输入框", url: "/components/input" }, { title: "Link 链接", url: "/components/link" }, + { title: "Skeleton 骨架屏", url: "/components/skeleton" }, { title: "Spinner 加载指示器", url: "/components/spinner" }, { title: "Surface 表面", url: "/components/surface" }, { title: "Switch 开关", url: "/components/switch" }, diff --git a/apps/docs/.vitepress/theme/utilities.css b/apps/docs/.vitepress/theme/utilities.css index 629c314..26b71a5 100644 --- a/apps/docs/.vitepress/theme/utilities.css +++ b/apps/docs/.vitepress/theme/utilities.css @@ -13,3 +13,49 @@ @slot; } } + +/* Demo-only utilities ported from the baseline docs global.css. */ +@keyframes shine { + 0% { + translate: -100% 0; + } + 100% { + translate: 100% 0; + } +} + +@utility shadow-panel { + box-shadow: var(--surface-shadow); +} + +@utility animate-shine { + overflow: hidden; + position: relative; + + &::after { + content: ""; + position: absolute; + inset: 0; + width: 100%; + height: 100%; + background: linear-gradient( + 120deg, + transparent 10%, + rgba(255, 255, 255, 0.3) 45%, + rgba(255, 255, 255, 0.1) 55%, + transparent 90% + ); + animation: shine 3s ease-in-out infinite; + pointer-events: none; + } + + &:where(.dark, .dark *, [data-theme="dark"], [data-theme="dark"] *)::after { + background: linear-gradient( + 120deg, + transparent 10%, + rgba(255, 255, 255, 0.1) 45%, + rgba(255, 255, 255, 0.04) 55%, + transparent 90% + ); + } +} diff --git a/apps/docs/components.md b/apps/docs/components.md index b3079c4..024ed65 100644 --- a/apps/docs/components.md +++ b/apps/docs/components.md @@ -3,10 +3,14 @@ title: 组件 description: 已迁移组件及文档 --- +- [Avatar 头像](./components/avatar) +- [AvatarGroup 头像组](./components/avatar-group) - [Button 按钮](./components/button) - [Card 卡片](./components/card) +- [CloseButton 关闭按钮](./components/close-button) - [Input 输入框](./components/input) - [Link 链接](./components/link) +- [Skeleton 骨架屏](./components/skeleton) - [Spinner 加载指示器](./components/spinner) - [Surface 表面](./components/surface) - [Switch 开关](./components/switch) diff --git a/apps/docs/components/avatar-group.md b/apps/docs/components/avatar-group.md new file mode 100644 index 0000000..dc83a7c --- /dev/null +++ b/apps/docs/components/avatar-group.md @@ -0,0 +1,148 @@ +--- +title: AvatarGroup 头像组 +description: 以叠放或网格展示多个头像,并支持溢出计数 +component: avatar-group +group: 组件 +--- + +## 用法 + +```vue + +``` + + + +## 组件结构 + +```vue + + + +``` + +## 示例 + +### 最大数量 + + + +### 自定义计数 + + + +### 尺寸 + + + +### 网格 + + + +### 叠放样式(Overlap) + + + +## 自定义样式 + +### Tailwind CSS + + + +### 全局 CSS + +可使用 `@layer components` 指令自定义 AvatarGroup 组件类。 + +```css +@layer components { + .hv-avatar-group { + --avatar-group-overlap: 0.75rem; + --avatar-group-seam: 2px; + } + + .hv-avatar-group__count { + @apply font-semibold; + } +} +``` + +## 样式参考 + +HeroUI 遵循 [BEM](https://getbem.com/) 方法论,确保组件变体与状态可复用且易于自定义。 + +### CSS 类 + +AvatarGroup 组件使用以下 CSS 类: + +#### 基础类 [!toc] + +- `.hv-avatar-group` - 头像组基础容器 +- `.hv-avatar-group--grid` - 网格布局修饰符(无叠放) +- `.hv-avatar-group--clip` - 新月裁切 / 透明缝(默认叠放) +- `.hv-avatar-group--ring` - 通过 `--background` 的实线 box-shadow 描边 +- `.hv-avatar-group__count` - 溢出计数头像 + +叠放布局在兄弟元素之间使用负外边距(`--avatar-group-overlap`,默认 `0.5rem`)。clip 模式对非末子头像做遮罩,并光学微调 fallback 字形;ring 模式使用 `--background` 细线 box-shadow 描边。 + +## API 参考 + +### AvatarGroup + +| Prop | 类型 | 默认值 | 描述 | +| --------- | ------------------------------------------------------------- | -------- | -------------------------------------------------------------------------- | +| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | 当子 Avatar 未指定 `size` 时应用到子头像(及溢出计数);默认与 Avatar 一致 | +| `color` | `'default' \| 'accent' \| 'success' \| 'warning' \| 'danger'` | - | 当子 Avatar 未指定 `color` 时,应用到子头像(及溢出计数)的颜色 | +| `variant` | `'default' \| 'soft'` | - | 当子 Avatar 未指定 `variant` 时,应用到子头像(及溢出计数)的变体 | +| `max` | `number` | - | 最多渲染的头像子项数量;省略则显示全部 | +| `isGrid` | `boolean` | `false` | 是否使用无叠放的换行网格布局 | +| `overlap` | `'clip' \| 'ring'` | `'clip'` | 叠放样式:新月裁切(默认)或 box-shadow 描边;`isGrid` 时忽略 | +| `class` | `string` | - | 附加 CSS 类 | +| 默认插槽 | `Avatar[] \| AvatarGroupCount` | - | 要组合的 Avatar 组件(以及可选的 `AvatarGroupCount`) | + +### AvatarGroupCount + +由 `Avatar` + `AvatarFallback` 组合而成,用于溢出指示。不受 `max` 截断。 + +| Prop | 类型 | 默认值 | 描述 | +| --------- | ------------------------------------------------------------- | ------ | --------------------- | +| 默认插槽 | `string \| Component` | - | 计数内容(例如 `+3`) | +| `size` | `'sm' \| 'md' \| 'lg'` | - | 覆盖组的尺寸 | +| `color` | `'default' \| 'accent' \| 'success' \| 'warning' \| 'danger'` | - | 覆盖组的颜色 | +| `variant` | `'default' \| 'soft'` | - | 覆盖组的变体 | +| `class` | `string` | - | 附加 CSS 类 | + +## 注意事项 + +- AvatarGroup 通过 provide/inject 仅向**直接 Avatar 子组件**传递 `size`、`color` 与 `variant` +- 设置 `max` 会截断可见头像并根据剩余子项自动计数;省略则显示全部 +- 已知总量(例如来自服务端)时,渲染显式的 `AvatarGroupCount` — 它不受 `max` 截断,并会抑制自动计数。请用 `Count` 替代已移除的 v2 `total` +- `isGrid` 会禁用叠放,改为换行网格布局 +- `overlap` 默认为 `"clip"`(新月裁切);使用 `"ring"` 可改为实线描边;与 `isGrid` 同时使用时无效 +- 默认不加 `role="group"` — 当叠放有语义(指派人、在看的人)时,自行加上 `role="group"`,并配合 `aria-label` 或 `aria-labelledby` + +## 相关组件 + +[Avatar 头像](./avatar) · [Card 卡片](./card) diff --git a/apps/docs/components/avatar.md b/apps/docs/components/avatar.md new file mode 100644 index 0000000..e018e58 --- /dev/null +++ b/apps/docs/components/avatar.md @@ -0,0 +1,149 @@ +--- +title: Avatar 头像 +description: 显示用户头像,支持自定义 fallback 内容 +component: avatar +group: 组件 +--- + +## 用法 + +```vue + +``` + + + +## 组件结构 + +```vue + + + +``` + +## 示例 + +### 尺寸 + + + +### 颜色 + + + +### 变体 + + + +### 回退内容 + + + +## 自定义样式 + +### 自定义图片组件 + +在 `AvatarImage` 上使用 `as-child`,即可与自定义图片组件组合。请将 `src` 传给 `AvatarImage`,以便跟踪加载状态,并在图片就绪前显示回退内容。 + + + +### Tailwind CSS + + + +### 全局 CSS + +可使用 `@layer components` 指令自定义 Avatar 组件类。 + +```css +@layer components { + .hv-avatar { + @apply size-16 border-2 border-accent; + } + + .hv-avatar__fallback { + @apply bg-gradient-to-br from-purple-500 to-pink-500; + } +} +``` + +## 样式参考 + +HeroUI 遵循 [BEM](https://getbem.com/) 方法论,确保组件变体与状态可复用且易于自定义。 + +### CSS 类 + +Avatar 组件使用以下 CSS 类: + +#### 基础类 [!toc] + +- `.hv-avatar` - 基础容器,默认尺寸(size-10) +- `.hv-avatar__image` - 图片元素,aspect-square 尺寸 +- `.hv-avatar__fallback` - 居中内容的 fallback 容器 + +#### 尺寸修饰符 [!toc] + +- `.hv-avatar--sm` - 小头像(size-8) +- `.hv-avatar--md` - 中头像(默认,无额外样式) +- `.hv-avatar--lg` - 大头像(size-12) + +#### 变体修饰符 [!toc] + +- `.hv-avatar--soft` - 浅色背景的 soft 变体 + +#### 颜色修饰符 [!toc] + +- `.hv-avatar__fallback--default` - 默认文字颜色 +- `.hv-avatar__fallback--accent` - 强调色文字 +- `.hv-avatar__fallback--success` - 成功色文字 +- `.hv-avatar__fallback--warning` - 警告色文字 +- `.hv-avatar__fallback--danger` - 危险色文字 + +## API 参考 + +### Avatar + +| Prop | 类型 | 默认值 | 描述 | +| --------- | ------------------------------------------------------------- | ----------- | ----------------- | +| `size` | `'sm' \| 'md' \| 'lg'` | `'md'` | 头像尺寸 | +| `color` | `'default' \| 'accent' \| 'success' \| 'warning' \| 'danger'` | `'default'` | Fallback 颜色主题 | +| `variant` | `'default' \| 'soft'` | `'default'` | 视觉样式变体 | +| `class` | `string` | - | 附加 CSS 类 | + +### AvatarImage + +| Prop | 类型 | 默认值 | 描述 | +| ------------- | ---------------------------------- | ------- | ------------------------------------------ | +| `src` | `string` | - | 图片 URL | +| `srcSet` | `string` | - | 响应式图片的 `srcset` 属性 | +| `sizes` | `string` | - | 响应式图片的 `sizes` 属性 | +| `alt` | `string` | - | 图片替代文本 | +| `asChild` | `boolean` | `false` | 将属性合并到子元素上,而不是渲染原生 `img` | +| `@load` | `(event: Event) => void` | - | 图片加载成功时的回调 | +| `@error` | `(event: Event) => void` | - | 图片加载失败时的回调 | +| `crossOrigin` | `'anonymous' \| 'use-credentials'` | - | 图片请求的 CORS 设置 | +| `loading` | `'eager' \| 'lazy'` | - | 原生懒加载属性 | +| `class` | `string` | - | 附加 CSS 类 | + +### AvatarFallback + +| Prop | 类型 | 默认值 | 描述 | +| --------- | ------------------------------------------------------------- | ------ | ---------------------------------------------------------------------------------------------------------------- | +| `delayMs` | `number` | - | 显示 fallback 前的延迟(防止闪烁)。`0` 与未指定不同:底座在 `delayMs=0` 时不会显示 fallback,需要延迟时请传正数 | +| `color` | `'default' \| 'accent' \| 'success' \| 'warning' \| 'danger'` | - | 覆盖父级颜色(替换而非叠加) | +| `class` | `string` | - | 附加 CSS 类 | + +Avatar 使用 Reka UI 的 `AvatarRoot` / `AvatarImage` / `AvatarFallback` 处理加载与回退状态。`onLoad` / `onError` 对应 Vue 原生 `@load` / `@error` 事件,不声明与 React 合成事件完全等价。 + +## 相关组件 + +[AvatarGroup 头像组](./avatar-group) · [Card 卡片](./card) diff --git a/apps/docs/components/close-button.md b/apps/docs/components/close-button.md new file mode 100644 index 0000000..a5d824e --- /dev/null +++ b/apps/docs/components/close-button.md @@ -0,0 +1,109 @@ +--- +title: CloseButton 关闭按钮 +description: 用于关闭对话框、模态框或 dismiss 内容的按钮组件 +component: close-button +group: 组件 +--- + +## 用法 + +```vue + +``` + + + +## 示例 + +### 交互 + + + +### 自定义图标 + + + +## 自定义样式 + +### Tailwind CSS + + + +### 全局 CSS + +可使用 `@layer components` 指令自定义 CloseButton 组件类。 + +```css +@layer components { + .hv-close-button { + @apply bg-red-100 text-red-800 hover:bg-red-200; + } + + .hv-close-button--custom { + @apply rounded-full border-2 border-red-300; + } +} +``` + +## 样式参考 + +HeroUI 遵循 [BEM](https://getbem.com/) 方法论,确保组件变体与状态可复用且易于自定义。 + +### CSS 类 + +CloseButton 组件使用以下 CSS 类: + +#### 基础类 [!toc] + +- `.hv-close-button` - 基础组件样式 + +#### 变体类 [!toc] + +- `.hv-close-button--default` - 默认变体 + +### 交互状态 + +组件同时支持 CSS 伪类与 data 属性: + +- **Hover**:`:hover` 或 `[data-hovered="true"]` +- **Active/Pressed**:`:active` 或 `[data-pressed="true"]` +- **Focus**:`:focus-visible` 或 `[data-focus-visible="true"]` +- **Disabled**:`:disabled` 或 `[aria-disabled="true"]` + +## API 参考 + +### CloseButton + +| Prop | 类型 | 默认值 | 描述 | +| ------------ | --------------------- | ------------ | -------------------------- | +| `variant` | `"default"` | `"default"` | 按钮视觉变体 | +| `isDisabled` | `boolean` | `false` | 是否禁用 | +| 默认插槽 | `string \| Component` | 内置关闭图标 | 显示内容(默认为关闭图标) | + +### 原生按钮属性 + +CloseButton 是原生 `button`,`type` 固定为 `"button"`。常用属性包括: + +| Prop | 类型 | 描述 | +| ------------------ | -------- | ------------------------------------ | +| `aria-label` | `string` | 屏幕阅读器的无障碍标签,默认 `Close` | +| `aria-labelledby` | `string` | 标注按钮的元素 ID | +| `aria-describedby` | `string` | 描述按钮的元素 ID | + +### 作用域插槽状态 + +| 参数 | 类型 | 描述 | +| ---------------- | --------- | ---------------------- | +| `isHovered` | `boolean` | 是否悬停 | +| `isPressed` | `boolean` | 是否按下 | +| `isFocused` | `boolean` | 是否聚焦 | +| `isFocusVisible` | `boolean` | 是否显示键盘焦点指示器 | +| `isDisabled` | `boolean` | 是否禁用 | + +`onPress` 与 React Aria 的 PressEvent 不直接等价;Vue 使用原生 `@click` 与键盘事件。默认关闭图标来自固定基线 `CloseIcon`,可通过插槽替换为任意图标组件。 + +## 相关组件 + +[Button 按钮](./button) · [Card 卡片](./card) diff --git a/apps/docs/components/skeleton.md b/apps/docs/components/skeleton.md new file mode 100644 index 0000000..5c89377 --- /dev/null +++ b/apps/docs/components/skeleton.md @@ -0,0 +1,185 @@ +--- +title: Skeleton 骨架屏 +description: Skeleton 用于展示加载状态,并预览组件的预期形状。 +component: skeleton +group: 组件 +--- + +## 用法 + +```vue + +``` + + + +## 示例 + +### 文本内容 + + + +### 用户资料 + + + +### 列表项 + + + +### 网格 + + + +### 单次闪烁 + +同步的 shimmer 效果会一次性扫过所有骨架元素。在父容器上应用 `hv-skeleton--shimmer` 类,并将子骨架的 `animationType` 设为 `"none"`。 + + + +### 动画类型 + + + +## 自定义样式 + +### Tailwind CSS + + + +### 全局 CSS + +若要自定义组件类,可使用 `@layer components` 指令。 + +```css +@layer components { + /* Base skeleton styles */ + .hv-skeleton { + @apply bg-surface-secondary/50; /* Change base background */ + } + + /* Shimmer animation gradient */ + .hv-skeleton--shimmer::after { + @apply via-surface-tertiary; /* Change shimmer gradient color */ + } + + /* Pulse animation */ + .hv-skeleton--pulse { + @apply animate-pulse opacity-75; /* Customize pulse animation */ + } + + /* No animation variant */ + .hv-skeleton--none { + @apply opacity-50; /* Style for static skeleton */ + } +} +``` + +### 全局动画配置 + +可在全局 CSS 中通过 `--skeleton-animation` 变量为所有 Skeleton 组件设置默认动画类型: + +```css +/* 全局 CSS 文件 */ +:root { + /* 可选值:shimmer、pulse、none */ + --skeleton-animation: pulse; +} + +/* 也可为浅色/深色主题设置不同值 */ +.light, +[data-theme="light"] { + --skeleton-animation: shimmer; +} + +.dark, +[data-theme="dark"] { + --skeleton-animation: pulse; +} +``` + +在单个组件上指定 `animation-type` 属性会覆盖此全局设置。 + +## 样式参考 + +HeroUI 遵循 [BEM](https://getbem.com/) 方法论,确保组件变体与状态可复用且易于自定义。 + +### CSS 类 + +Skeleton 使用以下 CSS 类: + +#### 基础类 [!toc] + +`.hv-skeleton` - 包含背景与圆角等基础骨架样式 + +#### 动画变体类 [!toc] + +- `.hv-skeleton--shimmer` - 添加带渐变效果的闪烁动画(默认) +- `.hv-skeleton--pulse` - 使用 Tailwind 的 `animate-pulse` 添加脉冲动画 +- `.hv-skeleton--none` - 无动画的静态骨架 + +### 动画 + +Skeleton 支持三种动画类型,视觉效果各不相同: + +#### 闪烁动画 [!toc] + +闪烁效果会在骨架元素上移动渐变: + +```css +.hv-skeleton--shimmer::after { + @apply absolute inset-0 -translate-x-full animate-skeleton + bg-linear-to-r from-transparent via-surface-tertiary to-transparent content-['']; +} +``` + +闪烁动画在主题中通过以下方式定义: + +```css +@theme inline { + --animate-skeleton: skeleton 2s linear infinite; + + @keyframes skeleton { + 100% { + transform: translateX(200%); + } + } +} +``` + +#### 脉冲动画 [!toc] + +脉冲动画使用 Tailwind 内置的 `animate-pulse` 工具类: + +```css +.hv-skeleton--pulse { + @apply animate-pulse; +} +``` + +#### 无动画 [!toc] + +用于不需要任何动画的静态骨架: + +```css +.hv-skeleton--none { + /* No animation styles applied */ +} +``` + +## API 参考 + +### Skeleton + +| Prop | 类型 | 默认值 | 描述 | +| --------------- | -------------------------------- | ----------------------- | ------------------------------------------------------------------------- | +| `animationType` | `"shimmer" \| "pulse" \| "none"` | `"shimmer"` 或 CSS 变量 | Skeleton 的动画类型;也可通过 `--skeleton-animation` CSS 变量进行全局配置 | +| `class` | `string` | - | 额外的 CSS 类名 | + +`animationType` 未指定时,客户端挂载后读取 `--skeleton-animation`;服务端渲染与首次客户端渲染使用 `"shimmer"` 兜底。挂载后修改该 CSS 变量不会自动更新已渲染的 Skeleton。 + +## 相关组件 + +[Card 卡片](./card) · [Spinner 加载指示器](./spinner) diff --git a/apps/docs/demos/avatar-basic.vue b/apps/docs/demos/avatar-basic.vue new file mode 100644 index 0000000..282e0cc --- /dev/null +++ b/apps/docs/demos/avatar-basic.vue @@ -0,0 +1,24 @@ + + diff --git a/apps/docs/demos/avatar-colors.vue b/apps/docs/demos/avatar-colors.vue new file mode 100644 index 0000000..4f6d0bb --- /dev/null +++ b/apps/docs/demos/avatar-colors.vue @@ -0,0 +1,22 @@ + + diff --git a/apps/docs/demos/avatar-custom-image-component.vue b/apps/docs/demos/avatar-custom-image-component.vue new file mode 100644 index 0000000..0eda9f0 --- /dev/null +++ b/apps/docs/demos/avatar-custom-image-component.vue @@ -0,0 +1,37 @@ + + diff --git a/apps/docs/demos/avatar-custom-styles.vue b/apps/docs/demos/avatar-custom-styles.vue new file mode 100644 index 0000000..60addf9 --- /dev/null +++ b/apps/docs/demos/avatar-custom-styles.vue @@ -0,0 +1,12 @@ + + diff --git a/apps/docs/demos/avatar-fallback.vue b/apps/docs/demos/avatar-fallback.vue new file mode 100644 index 0000000..6d14968 --- /dev/null +++ b/apps/docs/demos/avatar-fallback.vue @@ -0,0 +1,37 @@ + + diff --git a/apps/docs/demos/avatar-group-basic.vue b/apps/docs/demos/avatar-group-basic.vue new file mode 100644 index 0000000..af74cae --- /dev/null +++ b/apps/docs/demos/avatar-group-basic.vue @@ -0,0 +1,59 @@ + + diff --git a/apps/docs/demos/avatar-group-count.vue b/apps/docs/demos/avatar-group-count.vue new file mode 100644 index 0000000..80849bb --- /dev/null +++ b/apps/docs/demos/avatar-group-count.vue @@ -0,0 +1,63 @@ + + diff --git a/apps/docs/demos/avatar-group-custom-styles.vue b/apps/docs/demos/avatar-group-custom-styles.vue new file mode 100644 index 0000000..42996b4 --- /dev/null +++ b/apps/docs/demos/avatar-group-custom-styles.vue @@ -0,0 +1,56 @@ + + diff --git a/apps/docs/demos/avatar-group-grid.vue b/apps/docs/demos/avatar-group-grid.vue new file mode 100644 index 0000000..59a91ae --- /dev/null +++ b/apps/docs/demos/avatar-group-grid.vue @@ -0,0 +1,59 @@ + + diff --git a/apps/docs/demos/avatar-group-max.vue b/apps/docs/demos/avatar-group-max.vue new file mode 100644 index 0000000..ecbe96e --- /dev/null +++ b/apps/docs/demos/avatar-group-max.vue @@ -0,0 +1,59 @@ + + diff --git a/apps/docs/demos/avatar-group-overlap.vue b/apps/docs/demos/avatar-group-overlap.vue new file mode 100644 index 0000000..f5d7666 --- /dev/null +++ b/apps/docs/demos/avatar-group-overlap.vue @@ -0,0 +1,104 @@ + + + + + diff --git a/apps/docs/demos/avatar-group-sizes.vue b/apps/docs/demos/avatar-group-sizes.vue new file mode 100644 index 0000000..f182e76 --- /dev/null +++ b/apps/docs/demos/avatar-group-sizes.vue @@ -0,0 +1,82 @@ + + diff --git a/apps/docs/demos/avatar-sizes.vue b/apps/docs/demos/avatar-sizes.vue new file mode 100644 index 0000000..d898df7 --- /dev/null +++ b/apps/docs/demos/avatar-sizes.vue @@ -0,0 +1,28 @@ + + diff --git a/apps/docs/demos/avatar-variants.vue b/apps/docs/demos/avatar-variants.vue new file mode 100644 index 0000000..0036a98 --- /dev/null +++ b/apps/docs/demos/avatar-variants.vue @@ -0,0 +1,84 @@ + + diff --git a/apps/docs/demos/card-horizontal.vue b/apps/docs/demos/card-horizontal.vue index 81cdcfd..1dd7b75 100644 --- a/apps/docs/demos/card-horizontal.vue +++ b/apps/docs/demos/card-horizontal.vue @@ -1,6 +1,4 @@