mirror of
https://github.com/zhigang1992/react.git
synced 2026-04-23 11:57:40 +08:00
docs(user): add doc for altText
This commit is contained in:
@@ -45,6 +45,7 @@ Display user profile or social information.
|
||||
| **name**(required) | user name | `ReactNode` / `string` | - | - |
|
||||
| **src** | avatar url | `string` | - | - |
|
||||
| **text** | display text when image is missing | `string` | - | - |
|
||||
| **altText** | alt attribute used by inner avatar image | `string` | - | - |
|
||||
| ... | native props | `HTMLAttributes` | `'id', 'name', 'className', ...` | - |
|
||||
|
||||
<Attributes.Title>User.Link.Props</Attributes.Title>
|
||||
|
||||
@@ -45,6 +45,7 @@ export const meta = {
|
||||
| **name**(必须值) | 用户名 | `ReactNode` / `string` | - | - |
|
||||
| **src** | 头像图片地址 | `string` | - | - |
|
||||
| **text** | 以文字方式显示头像 | `string` | - | - |
|
||||
| **altText** | 内部头像图像使用的alt属性 | `string` | - | - |
|
||||
| ... | 原生属性 | `HTMLAttributes` | `'id', 'name', 'className', ...` | - |
|
||||
|
||||
<Attributes.Title>User.Link.Props</Attributes.Title>
|
||||
|
||||
Reference in New Issue
Block a user