|
5717 | 5717 | } |
5718 | 5718 | ] |
5719 | 5719 | }, |
| 5720 | + { |
| 5721 | + "component": "OpenProject::AvatarStack", |
| 5722 | + "status": "beta", |
| 5723 | + "a11y_reviewed": false, |
| 5724 | + "short_name": "OpenProjectAvatarStack", |
| 5725 | + "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/avatar_stack.rb", |
| 5726 | + "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/avatar_stack/default/", |
| 5727 | + "parameters": [ |
| 5728 | + { |
| 5729 | + "name": "tag", |
| 5730 | + "type": "Symbol", |
| 5731 | + "default": "`:div`", |
| 5732 | + "description": "One of `:div` or `:span`." |
| 5733 | + }, |
| 5734 | + { |
| 5735 | + "name": "align", |
| 5736 | + "type": "Symbol", |
| 5737 | + "default": "`:left`", |
| 5738 | + "description": "One of `:left` or `:right`." |
| 5739 | + }, |
| 5740 | + { |
| 5741 | + "name": "tooltipped", |
| 5742 | + "type": "Boolean", |
| 5743 | + "default": "`false`", |
| 5744 | + "description": "Whether to add a tooltip to the stack or not." |
| 5745 | + }, |
| 5746 | + { |
| 5747 | + "name": "disable_expand", |
| 5748 | + "type": "Boolean", |
| 5749 | + "default": "`false`", |
| 5750 | + "description": "Whether to disable the expand behavior on hover. If true, avatars will not expand." |
| 5751 | + }, |
| 5752 | + { |
| 5753 | + "name": "body_arguments", |
| 5754 | + "type": "Hash", |
| 5755 | + "default": "`{}`", |
| 5756 | + "description": "Parameters to add to the Body. If `tooltipped` is set, has the same arguments as [Tooltip](/components/tooltip). The default tag is `:div` but can be changed using `tag:` to one of `:div` or `:span`." |
| 5757 | + }, |
| 5758 | + { |
| 5759 | + "name": "system_arguments", |
| 5760 | + "type": "Hash", |
| 5761 | + "default": "N/A", |
| 5762 | + "description": "[System arguments](/system-arguments)" |
| 5763 | + } |
| 5764 | + ] |
| 5765 | + }, |
| 5766 | + { |
| 5767 | + "component": "OpenProject::AvatarWithFallback", |
| 5768 | + "status": "beta", |
| 5769 | + "a11y_reviewed": false, |
| 5770 | + "short_name": "OpenProjectAvatarWithFallback", |
| 5771 | + "source": "https://github.com/primer/view_components/tree/main/app/components/primer/open_project/avatar_with_fallback.rb", |
| 5772 | + "lookbook": "https://primer.style/view-components/lookbook/inspect/primer/open_project/avatar_with_fallback/default/", |
| 5773 | + "parameters": [ |
| 5774 | + { |
| 5775 | + "name": "src", |
| 5776 | + "type": "String", |
| 5777 | + "default": "`nil`", |
| 5778 | + "description": "The source url of the avatar image. When nil, renders a fallback with initials." |
| 5779 | + }, |
| 5780 | + { |
| 5781 | + "name": "alt", |
| 5782 | + "type": "String", |
| 5783 | + "default": "`nil`", |
| 5784 | + "description": "Alt text for the avatar. Used for accessibility and to generate initials when src is nil." |
| 5785 | + }, |
| 5786 | + { |
| 5787 | + "name": "size", |
| 5788 | + "type": "Integer", |
| 5789 | + "default": "`20`", |
| 5790 | + "description": "One of `16`, `20`, `24`, `32`, `40`, `48`, `64`, or `80`." |
| 5791 | + }, |
| 5792 | + { |
| 5793 | + "name": "shape", |
| 5794 | + "type": "Symbol", |
| 5795 | + "default": "`:circle`", |
| 5796 | + "description": "Shape of the avatar. One of `:circle` or `:square`." |
| 5797 | + }, |
| 5798 | + { |
| 5799 | + "name": "href", |
| 5800 | + "type": "String", |
| 5801 | + "default": "`nil`", |
| 5802 | + "description": "The URL to link to. If used, component will be wrapped by an `<a>` tag." |
| 5803 | + }, |
| 5804 | + { |
| 5805 | + "name": "unique_id", |
| 5806 | + "type": "String, Integer", |
| 5807 | + "default": "`nil`", |
| 5808 | + "description": "Unique identifier for generating consistent avatar colors across renders." |
| 5809 | + }, |
| 5810 | + { |
| 5811 | + "name": "system_arguments", |
| 5812 | + "type": "Hash", |
| 5813 | + "default": "N/A", |
| 5814 | + "description": "[System arguments](/system-arguments)" |
| 5815 | + } |
| 5816 | + ] |
| 5817 | + }, |
5720 | 5818 | { |
5721 | 5819 | "component": "OpenProject::BorderBox::CollapsibleHeader", |
5722 | 5820 | "status": "open_project", |
|
0 commit comments