UserIcon: Fix mdx docs (#69079)

UserIcon: Fix mdx
This commit is contained in:
Alex Khomenko 2023-05-25 17:06:34 +03:00 committed by GitHub
parent edf1775d49
commit 6393e2e713
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 8 additions and 4 deletions

View File

@ -1,6 +1,8 @@
import { Props } from '@storybook/addon-docs/blocks';
import { Meta, ArgTypes } from '@storybook/blocks';
import { UserIcon } from './UserIcon';
<Meta title="MDX|UserIcon" component={UserIcon} />
# UserIcon
`UserIcon` a component that takes in the `UserIconProps` interface as a prop. It renders a user icon and displays the user's name or initials along with the user's active status or last viewed date.
@ -49,7 +51,7 @@ const ExampleComponent = () => {
};
```
<Props of={UserIcon} />
<ArgTypes of={UserIcon} />
## UserView type

View File

@ -1,6 +1,8 @@
import { Props } from '@storybook/addon-docs/blocks';
import { Meta, ArgTypes } from '@storybook/blocks';
import { UsersIndicator } from './UsersIndicator';
<Meta title="MDX|UsersIndicator" component={UsersIndicator} />
# UsersIndicator
A component that displays a set of user icons indicating which users are currently active. If there are too many users to display all the icons, it will collapse the icons into a single icon with a number indicating the number of additional users.
@ -43,7 +45,7 @@ const ExampleComponent = () => {
};
```
<Props of={UsersIndicator} />
<ArgTypes of={UsersIndicator} />
## UserView type