mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
parent
edf1775d49
commit
6393e2e713
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user